Files
wren/test/closure/close_over_method_parameter.wren
T

13 lines
146 B
Plaintext
Raw Normal View History

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