2014-07-13 01:04:16 +02:00
|
|
|
//// [functionOverloads23.ts]
|
|
|
|
function foo(bar:(b:string)=>void);
|
|
|
|
function foo(bar:(a:number)=>void);
|
|
|
|
function foo(bar:(a?)=>void) { return 0 }
|
|
|
|
|
|
|
|
|
|
|
|
//// [functionOverloads23.js]
|
2015-02-07 05:03:24 +01:00
|
|
|
function foo(bar) { return 0; }
|