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