Files
wren/test/closure/close_over_method_parameter.wren
Bob Nystrom b979272305 Clean up text handling a bit:
- Rename IO.write -> IO.print.
- Make IO.write not print a newline.
- Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00

13 lines
142 B
Plaintext

var f = null
class Foo {
method(param) {
f = fn {
IO.print(param)
}
}
}
(new Foo).method("param")
f.call // expect: param