Files
wren/test/language/closure/closed_closure_in_function.wren
T

11 lines
110 B
Plaintext
Raw Normal View History

2013-12-04 07:43:50 -08:00
var f = null
{
var local = "local"
2015-07-10 09:18:22 -07:00
f = Fn.new {
2015-09-15 07:46:09 -07:00
System.print(local)
2013-12-04 07:43:50 -08:00
}
}
2015-02-26 23:08:36 -08:00
f.call() // expect: local