Files
Nuake-custom/Nuake/Vendors/wren/test/language/this/nested_closure.wren
2025-01-30 22:41:17 -05:00

9 lines
209 B
Plaintext

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