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
8e791c70c0b1b83c0fd526a951afd11300177da6
wren
/
test
/
language
/
break
/
closure_in_while.wren
T
10 lines
97 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"
Make constructors just methods.
2015-07-10 09:18:22 -07:00
f = Fn.new { IO.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