TypeScript/tests/baselines/reference/contextualTyping15.js

13 lines
301 B
JavaScript
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;
};
}
return foo;
})();