5 lines
154 B
TypeScript
5 lines
154 B
TypeScript
//// [contextualTyping13.ts]
|
|
var foo:(a:number)=>number = function(a){return a};
|
|
|
|
//// [contextualTyping13.js]
|
|
var foo = function (a) { return a; };
|