Skip to content

Commit 47444bf

Browse files
author
Zdenko Vujasinovic
committed
test for spaced prefix ...
1 parent ba50f9e commit 47444bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/arrays.coffee

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ test "#4260: splat after existential operator soak", ->
7676
arrayEq [...c?.b], []
7777

7878
# Should not trigger implicit call, e.g. rest ... => rest(...)
79+
arrayEq [... a?.b], [3]
80+
arrayEq [... c?.b], []
7981
arrayEq [a?.b ...], [3]
8082
arrayEq [c?.b ...], []
8183

@@ -89,6 +91,8 @@ test "#1349: trailing if after splat", ->
8991
arrayEq [...a if c], []
9092

9193
# Should not trigger implicit call, e.g. rest ... => rest(...)
94+
arrayEq [... a if b], [3]
95+
arrayEq [... a if c], []
9296
arrayEq [a if b ...], [3]
9397
arrayEq [a if c ...], []
9498

0 commit comments

Comments
 (0)