Files
tsgo/testdata/baselines/reference/submodule/conformance/classExpression4.js

20 lines
333 B
TypeScript

//// [tests/cases/conformance/classes/classExpressions/classExpression4.ts] ////
//// [classExpression4.ts]
let C = class {
foo() {
return new C();
}
};
let x = (new C).foo();
//// [classExpression4.js]
"use strict";
let C = class {
foo() {
return new C();
}
};
let x = (new C).foo();