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]
|
2015-02-07 05:03:24 +01:00
|
|
|
function Point() { this.x = 3; }
|
2014-08-15 23:32:08 +02:00
|
|
|
var x = new Point(); // error at "new"
|