TypeScript/tests/baselines/reference/implicitAnyNewExprLackConstructorSignature.js

10 lines
270 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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(); // error at "new"