mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
added code to illustrate an issue with break statements
This commit is contained in:
parent
3c597dde72
commit
89dfa1fd7a
1 changed files with 8 additions and 0 deletions
8
test/test_break.coffee
Normal file
8
test/test_break.coffee
Normal file
|
@ -0,0 +1,8 @@
|
|||
a: [1,2,3]
|
||||
call_with_lambda: (l) -> null
|
||||
for i in a
|
||||
a: call_with_lambda(->)
|
||||
if i == 2
|
||||
puts "i = 2"
|
||||
else
|
||||
break
|
Loading…
Add table
Reference in a new issue