Files
wren/test/language/closure/close_over_function_parameter.wren

10 lines
116 B
Plaintext
Raw Permalink Normal View History

var f = null
Fn.new {|param|
f = Fn.new {
System.print(param)
}
}.call("param")
f.call() // expect: param