mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
9 lines
187 B
TypeScript
9 lines
187 B
TypeScript
// @target: es5
|
|
var foo: any = { foo: 1, bar: 2 };
|
|
var bar: any;
|
|
|
|
// reassignment in destructuring pattern
|
|
({ foo, bar } = foo);
|
|
|
|
// reassignment in subsequent var
|
|
var { foo, baz } = foo; |