TypeScript/tests/baselines/reference/implicitAnyNewExprLackConstructorSignature.errors.txt
2014-09-11 16:11:08 -07:00

5 lines
314 B
Plaintext

==== 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.