mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
8 lines
135 B
TypeScript
8 lines
135 B
TypeScript
|
//@target: ES6
|
|||
|
var x: string, y: number;
|
|||
|
var array = [{ x: "", y: true }]
|
|||
|
enum E { x }
|
|||
|
for ({x, y = E.x} of array) {
|
|||
|
x;
|
|||
|
y;
|
|||
|
}
|