TypeScript/tests/baselines/reference/implicitAnyNewExprLackConstructorSignature.errors.txt

8 lines
497 B
Text
Raw Normal View History

tests/cases/compiler/implicitAnyNewExprLackConstructorSignature.ts(2,14): error TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
2014-07-13 01:04:16 +02:00
==== 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.