2013-12-21 23:55:08 +00:00
|
|
|
class Foo {
|
2014-04-03 14:48:19 +00:00
|
|
|
getClosure { new Fn { toString } }
|
|
|
|
|
toString { "Foo" }
|
2013-12-21 23:55:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var closure = (new Foo).getClosure
|
2015-02-27 07:08:36 +00:00
|
|
|
IO.print(closure.call()) // expect: Foo
|