mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-15 18:14:55 -05:00
Fixing issue #694. Destructuring assignment as first line of implicitly called block -- regression.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user