forked from Mirror/wren
Variables declared in the loop were not properly disposed of when you broke out of the loop.
10 lines
97 B
Plaintext
10 lines
97 B
Plaintext
var f
|
|
for (i in [1, 2, 3]) {
|
|
var j = 4
|
|
f = fn IO.print(i + j)
|
|
break
|
|
}
|
|
|
|
f.call
|
|
// expect: 5
|