TypeScript/tests/baselines/reference/newOnInstanceSymbol.js

14 lines
281 B
TypeScript

//// [newOnInstanceSymbol.ts]
class C {}
var x = new C(); // should be ok
new x(); // should error
//// [newOnInstanceSymbol.js]
var C = /** @class */ (function () {
function C() {
}
return C;
}());
var x = new C(); // should be ok
new x(); // should error