-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Spread arrays #237
Copy link
Copy link
Closed
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueES6Relates to the ES6 SpecRelates to the ES6 SpecFixedA PR has been merged for this issueA PR has been merged for this issue
Metadata
Metadata
Assignees
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueES6Relates to the ES6 SpecRelates to the ES6 SpecFixedA PR has been merged for this issueA PR has been merged for this issue
Example from ES6
Type checking
The type of the array is the best common type of the individual elements and the element types of each of the "spread" elements.
Codegen
becomes:
If the array starts with a spread, you can concat off the spread:
becomes:
Questions