TypeScript/tests/baselines/reference/contextualTyping5.js

11 lines
209 B
JavaScript
Raw Normal View History

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