Files
wren/test/closure/shadow_closure_with_local.wren
T

12 lines
197 B
Plaintext
Raw Normal View History

{
var foo = "closure"
new Fn {
{
IO.print(foo) // expect: closure
var foo = "shadow"
IO.print(foo) // expect: shadow
}
IO.print(foo) // expect: closure
}.call
}