mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +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
|