TypeScript/tests/baselines/reference/functionOverloads24.js
2015-02-06 18:45:09 -08:00

11 lines
261 B
JavaScript

//// [functionOverloads24.ts]
function foo(bar:number):(b:string)=>void;
function foo(bar:string):(a:number)=>void;
function foo(bar:any):(a)=>void { return function(){} }
//// [functionOverloads24.js]
function foo(bar) {
return function () { };
}