forked from Mirror/wren
Variables declared in the loop were not properly disposed of when you broke out of the loop.
11 lines
114 B
Plaintext
11 lines
114 B
Plaintext
var f = fn {
|
|
while (true) {
|
|
var i = "i"
|
|
return fn IO.print(i)
|
|
}
|
|
}
|
|
|
|
var g = f.call
|
|
g.call
|
|
// expect: i
|