2015-01-13 21:36:42 -08:00
|
|
|
var F = null
|
2013-12-04 07:43:50 -08:00
|
|
|
|
|
|
|
|
class Foo {
|
|
|
|
|
method(param) {
|
2015-01-13 21:36:42 -08:00
|
|
|
F = new Fn {
|
2014-01-05 12:27:12 -08:00
|
|
|
IO.print(param)
|
2013-12-04 07:43:50 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-19 07:02:27 -08:00
|
|
|
(new Foo).method("param")
|
2015-01-13 21:36:42 -08:00
|
|
|
F.call // expect: param
|