forked from Mirror/wren
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
8 lines
184 B
Plaintext
8 lines
184 B
Plaintext
class Foo {
|
|
getClosure { new Fn { new Fn { new Fn { toString } } } }
|
|
toString { "Foo" }
|
|
}
|
|
|
|
var closure = (new Foo).getClosure
|
|
IO.print(closure.call().call().call()) // expect: Foo
|