8 lines
No EOL
497 B
Text
8 lines
No EOL
497 B
Text
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. |