2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/newOnInstanceSymbol.ts(3,1): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/newOnInstanceSymbol.ts (1 errors) ====
|
|
|
|
class C {}
|
|
|
|
var x = new C(); // should be ok
|
|
|
|
new x(); // should error
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
|