This website requires JavaScript.
Explore
Help
Register
Sign In
retoor
/
wren
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
99eac12fd38a0875cd6c061fb634322e8092155c
wren
/
test
/
break
/
closure_in_for.wren
T
10 lines
97 B
Plaintext
Raw
Normal View
History
Unescape
Escape
fix: properly dispose loop-scoped variables and exit scopes on break
2014-01-06 16:01:04 +00:00
var f
for (i in [1, 2, 3]) {
var j = 4
f = fn IO.print(i + j)
break
}
f.call
// expect: 5
Reference in New Issue
Copy Permalink