1
0
forked from Mirror/wren
Files
wren/test/this/nested_closure.wren
2014-02-12 17:33:35 -08:00

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