mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
a4cd3bb77c
* Test for functional argument passing
12 lines
287 B
Plaintext
12 lines
287 B
Plaintext
hello from function pointer: 5
|
|
deferring...
|
|
Thing.Print: foo arg: bar
|
|
...run as defer 3
|
|
...run closure deferred: 4
|
|
...run as defer 1
|
|
bound method: foo
|
|
thing inside closure: foo
|
|
inside fp closure: foo 3
|
|
Thing.Print: arg: functional args 1
|
|
Thing.Print: named thing arg: functional args 2
|