Fixing issue #694. Destructuring assignment as first line of implicitly called block -- regression.

This commit is contained in:
Jeremy Ashkenas
2010-09-19 09:04:38 -04:00
parent 08e1101c1f
commit 15d84dbb4e
3 changed files with 15 additions and 3 deletions

View File

@@ -137,3 +137,13 @@ persons = [['Bob', ['George']], ['Alice', ['Bob']], ['Stan', ['Christopher']]]
join3 = "#{parent}: #{name}" for [name, [parent]] in persons
deepEqual join2, join3
# Pattern matching doesn't clash with implicit block objects.
obj = a: 101
func -> true
if func func
{a} = obj
ok a is 101