forked from Mirror/wren
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
17 lines
255 B
Plaintext
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.print(closure.call.call.call) // expect: Foo
|