18 lines
562 B
Text
18 lines
562 B
Text
|
=== tests/cases/compiler/functionOverloads24.ts ===
|
||
|
function foo(bar:number):(b:string)=>void;
|
||
|
>foo : { (bar: number): (b: string) => void; (bar: string): (a: number) => void; }
|
||
|
>bar : number
|
||
|
>b : string
|
||
|
|
||
|
function foo(bar:string):(a:number)=>void;
|
||
|
>foo : { (bar: number): (b: string) => void; (bar: string): (a: number) => void; }
|
||
|
>bar : string
|
||
|
>a : number
|
||
|
|
||
|
function foo(bar:any):(a)=>void { return function(){} }
|
||
|
>foo : { (bar: number): (b: string) => void; (bar: string): (a: number) => void; }
|
||
|
>bar : any
|
||
|
>a : any
|
||
|
>function(){} : () => void
|
||
|
|