TypeScript/tests/baselines/reference/contextualTyping22.js

11 lines
230 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [contextualTyping22.ts]
var foo:(a:number)=>number = function(a){return a}; foo = function(b){return b};
//// [contextualTyping22.js]
var foo = function (a) {
return a;
};
foo = function (b) {
return b;
};