8 lines
497 B
Plaintext
8 lines
497 B
Plaintext
tests/cases/compiler/implicitAnyNewExprLackConstructorSignature.ts(2,14): error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
|
|
|
|
|
|
==== tests/cases/compiler/implicitAnyNewExprLackConstructorSignature.ts (1 errors) ====
|
|
function Point() { this.x = 3; }
|
|
var x: any = new Point(); // error at "new"
|
|
~~~~~~~~~~~
|
|
!!! error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type. |