mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
298 B
TypeScript
18 lines
298 B
TypeScript
//// [tests/cases/compiler/destructuringWithNewExpression.ts] ////
|
|
|
|
//// [destructuringWithNewExpression.ts]
|
|
class C {
|
|
x = 0;
|
|
}
|
|
|
|
var { x } = new C;
|
|
|
|
//// [destructuringWithNewExpression.js]
|
|
"use strict";
|
|
class C {
|
|
constructor() {
|
|
this.x = 0;
|
|
}
|
|
}
|
|
var { x } = new C;
|