TypeScript/tests/baselines/reference/implicitAnyNewExprLackConstructorSignature.errors.txt
2014-09-12 13:35:07 -07:00

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.