You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code compiles even though an object is being assigned to an explicitly specified array
🙂 Expected behavior
Compilation should fail. The spread into object does not preserve the semantics of spreading into an array since elements will overwrite each other. This opens up the possibility of a serious data loss.
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
Code compiles even though an object is being assigned to an explicitly specified array
🙂 Expected behavior
Compilation should fail. The spread into object does not preserve the semantics of spreading into an array since elements will overwrite each other. This opens up the possibility of a serious data loss.
The text was updated successfully, but these errors were encountered: