mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
333 B
TypeScript
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();
|