Files
wren/test/closure/shadow_closure_with_local.wren
T

12 lines
197 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
}.call
}