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

5 lines
300 B
Plaintext
Raw Normal View History

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"
~~~~~~~~~~~
!!! 'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.