mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 02:24:57 -05:00
follow-up to d1bca636; fixed unrolling of the single case ({@a} = o -> @a = o.a)
This commit is contained in:
@@ -149,6 +149,8 @@ obj =
|
||||
func: (list, object) ->
|
||||
[@one, @two] = list
|
||||
{@a, @b} = object
|
||||
{@a} = object # must not unroll this
|
||||
null
|
||||
|
||||
obj.func [1, 2], a: 'a', b: 'b'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user