Adding a test for the previous commit.

This commit is contained in:
Jeremy Ashkenas
2010-12-23 17:58:22 -08:00
parent c25462d924
commit 7710528f01

View File

@@ -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}"