TypeScript/tests/baselines/reference/contextualTyping3.js

11 lines
219 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [contextualTyping3.ts]
class foo { public bar:{id:number;} = {id:5}; }
//// [contextualTyping3.js]
var foo = (function () {
function foo() {
this.bar = { id: 5 };
}
return foo;
})();