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

11 lines
246 B
JavaScript

//// [contextualTyping10.ts]
class foo { public bar:{id:number;}[] = [{id:1}, {id:2}]; }
//// [contextualTyping10.js]
var foo = (function () {
function foo() {
this.bar = [{ id: 1 }, { id: 2 }];
}
return foo;
})();