mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
15 lines
178 B
Plaintext
15 lines
178 B
Plaintext
var F = null
|
|
|
|
class Foo {
|
|
construct new() {}
|
|
|
|
def method(param) {
|
|
F = Fn.new {
|
|
System.print(param)
|
|
}
|
|
}
|
|
}
|
|
|
|
Foo.new().method("param")
|
|
F.call() // expect: param
|