Files
wren/test/this/nested_closure.wren
T

8 lines
178 B
Plaintext
Raw Normal View History

class Foo {
getClosure { new Fn { new Fn { new Fn { toString } } } }
toString { "Foo" }
}
var closure = (new Foo).getClosure
IO.print(closure.call.call.call) // expect: Foo