6 lines
218 B
JavaScript
6 lines
218 B
JavaScript
//// [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; };
|