1
0
Fork 0
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:
gfxmonk 2010-03-14 11:44:24 +11:00
parent 3c597dde72
commit 89dfa1fd7a

8
test/test_break.coffee Normal file
View 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