TypeScript/tests/baselines/reference/contextualTyping15.js

11 lines
279 B
TypeScript
Raw Normal View History

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