TypeScript/tests/baselines/reference/contextualTyping23.js

9 lines
197 B
JavaScript
Raw Normal View History

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