TypeScript/tests/baselines/reference/contextualTyping11.js

11 lines
225 B
JavaScript
Raw Normal View History

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