TypeScript/tests/cases/compiler/implicitAnyNewExprLackConstructorSignature.ts

3 lines
100 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//@noimplicitany: true
function Point() { this.x = 3; }
var x: any = new Point(); // error at "new"