mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
9 lines
191 B
Plaintext
9 lines
191 B
Plaintext
class Foo {
|
|
construct new() {}
|
|
getClosure { fn () { fn () { fn () { toString } } } }
|
|
toString { "Foo" }
|
|
}
|
|
|
|
var closure = Foo.new().getClosure
|
|
System.print(closure()()()) // expect: Foo
|