TypeScript/tests/baselines/reference/implicitAnyNewExprLackConstructorSignature.js
2014-07-12 17:30:19 -07:00

10 lines
251 B
JavaScript

//// [implicitAnyNewExprLackConstructorSignature.ts]
function Point() { this.x = 3; }
var x: any = new Point(); // error at "new"
//// [implicitAnyNewExprLackConstructorSignature.js]
function Point() {
this.x = 3;
}
var x = new Point();