A new list isn't created for function calls with rest arguments with lists #43338
Labels
Priority/High
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Based on the following example, it seems like we are not always creating a new list? IMO, we need to create a new list always (also in-line with the spec) because it can result in unintentional updates like in the example.
E.g.,
Btw, just to add, the rest argument doesn't have to be just for the rest param, it can provide arguments for other params also.
Originally posted by @MaryamZi in #40040 (comment)
The text was updated successfully, but these errors were encountered: