mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
7 lines
122 B
TypeScript
7 lines
122 B
TypeScript
// @target: esnext
|
|
const y = { a: 'yes', b: 'no' };
|
|
const o = { x: 1, ...y };
|
|
var b;
|
|
var rest: any;
|
|
({ b, ...rest } = o);
|