Just catch alls for inner scoping now.

This commit is contained in:
Timothy Jones
2010-10-20 03:53:38 +13:00
parent cb6be74851
commit 7b1902183c
5 changed files with 33 additions and 20 deletions

View File

@@ -78,6 +78,17 @@ funcs = for i in [1..3]
ok (func() for func in funcs).join(' ') is '-1 -2 -3'
# Ensure that closing over local variables doesn't break scoping laws.
ok i is 3
for i in [0]
count = 0
i = 50
->
ok count is 0
ok i is 50
# Even when referenced in the filter.
list = ['one', 'two', 'three']