mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
6 lines
281 B
TypeScript
6 lines
281 B
TypeScript
|
var {...a, x } = { x: 1 }; // Error, rest must be last property
|
||
|
({...a, x } = { x: 1 }); // Error, rest must be last property
|
||
|
|
||
|
var {...a, x, ...b } = { x: 1 }; // Error, rest must be last property
|
||
|
({...a, x, ...b } = { x: 1 }); // Error, rest must be last property
|