mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
13 lines
146 B
Plaintext
13 lines
146 B
Plaintext
var f = null
|
|
|
|
class Foo {
|
|
method(param) {
|
|
f = new Fn {
|
|
IO.print(param)
|
|
}
|
|
}
|
|
}
|
|
|
|
(new Foo).method("param")
|
|
f.call // expect: param
|