1
0
forked from Mirror/wren
Files
wren/test/this/nested_closure.wren
2013-12-21 19:25:09 -08:00

17 lines
255 B
Plaintext

class Foo {
getClosure {
return fn {
return fn {
return fn {
return this.toString
}
}
}
}
toString { return "Foo" }
}
var closure = (new Foo).getClosure
IO.write(closure.call.call.call) // expect: Foo