Skip to content

Commit

Permalink
Add another test to cover jashkenas#4657 cases
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Sep 3, 2017
1 parent cdbea4b commit d734ef8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functions.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -566,3 +566,9 @@ test "#4657: destructured array param declarations", ->
f [3, 4, 5]
eq a, 1
eq b, 2

test "#4657: destructured array parameters", ->
f = ([a..., b]) -> {a, b}
result = f [1, 2, 3, 4]
arrayEq result.a, [1, 2, 3]
eq result.b, 4

0 comments on commit d734ef8

Please sign in to comment.