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

24 lines
282 B
TypeScript

//// [anyAsReturnTypeForNewOnCall.ts]
function Point(x, y) {
this.x = x;
this.y = y;
}
var o = new Point(3, 4);
var xx = o.x;
//// [anyAsReturnTypeForNewOnCall.js]
function Point(x, y) {
this.x = x;
this.y = y;
}
var o = new Point(3, 4);
var xx = o.x;