TypeScript/tests/cases/compiler/implicitAnyNewExprLackConstructorSignature.ts
2014-07-12 17:30:19 -07:00

3 lines
100 B
TypeScript

//@noimplicitany: true
function Point() { this.x = 3; }
var x: any = new Point(); // error at "new"