TypeScript/tests/baselines/reference/classExpression4.js
2015-12-08 17:51:10 -08:00

20 lines
329 B
TypeScript

//// [classExpression4.ts]
let C = class {
foo() {
return new C();
}
};
let x = (new C).foo();
//// [classExpression4.js]
var C = (function () {
function class_1() {
}
class_1.prototype.foo = function () {
return new C();
};
return class_1;
}());
var x = (new C).foo();