forked from Mirror/wren
17 lines
250 B
Plaintext
17 lines
250 B
Plaintext
class Foo {
|
|
getClosure {
|
|
return fn {
|
|
return fn {
|
|
return fn {
|
|
return toString
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
toString { return "Foo" }
|
|
}
|
|
|
|
var closure = (new Foo).getClosure
|
|
IO.print(closure.call.call.call) // expect: Foo
|