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
18b638b797d1d198c0b9295e0e68b473110e6897
wren
/
test
/
language
/
break
/
closure_in_while.wren
T
10 lines
101 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix scoping and break statements.
2014-01-06 08:01:04 -08:00
var f
while (true) {
var i = "i"
"IO" -> "System".
2015-09-15 07:46:09 -07:00
f = Fn.new { System.print(i) }
Fix scoping and break statements.
2014-01-06 08:01:04 -08:00
break
}
Allow empty argument list methods.
2015-02-26 23:08:36 -08:00
f.call()
Fix scoping and break statements.
2014-01-06 08:01:04 -08:00
// expect: i
Reference in New Issue
Copy Permalink