mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Adding a test for the previous commit.
This commit is contained in:
@@ -265,7 +265,10 @@ eq e, 3
|
||||
|
||||
# Issue #948. Capturing loop variables.
|
||||
funcs = []
|
||||
for y in [1, 2, 3] ->
|
||||
list = ->
|
||||
[1, 2, 3]
|
||||
|
||||
for y in list() ->
|
||||
z = y
|
||||
funcs.push -> "y is #{y} and z is #{z}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user