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

12 lines
199 B
Plaintext
Raw Normal View History

2014-04-19 17:48:06 -07:00
{
var foo = "closure"
new Fn {
{
IO.print(foo) // expect: closure
var foo = "shadow"
IO.print(foo) // expect: shadow
}
IO.print(foo) // expect: closure
2015-02-26 23:08:36 -08:00
}.call()
2014-04-19 17:48:06 -07:00
}