TypeScript/tests/baselines/reference/newOnInstanceSymbol.errors.txt
2014-07-12 17:30:19 -07:00

6 lines
250 B
Plaintext

==== tests/cases/compiler/newOnInstanceSymbol.ts (1 errors) ====
class C {}
var x = new C(); // should be ok
new x(); // should error
~~~~~~~
!!! Cannot use 'new' with an expression whose type lacks a call or construct signature.