15 lines
244 B
TypeScript
15 lines
244 B
TypeScript
//// [destructuringWithNewExpression.ts]
|
|
class C {
|
|
x = 0;
|
|
}
|
|
|
|
var { x } = new C;
|
|
|
|
//// [destructuringWithNewExpression.js]
|
|
var C = (function () {
|
|
function C() {
|
|
this.x = 0;
|
|
}
|
|
return C;
|
|
})();
|
|
var x = (new C).x;
|