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