Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions jscomp/test/array_spreads.res
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
let x = [1, 2, 3]
let y = [...x, 4, 5, ...x, 6]
let xx = [3]
let x = [1, 2, 3, ...Js.Array2.map(xx, v => v * 2)]
let y = [...x, 4, 5, ...x, 6, ...x->Js.Array2.map(v => v * 2)]
Comment on lines +2 to +3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Top Js.Array2.map works (no pipe), but bottom does not (using pipes). @cristianoc got any spontaneous ideas about this?

Loading