Files
tsgo/testdata/baselines/reference/submodule/compiler/destructuringWithNewExpression.js

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;