39 lines
843 B
Plaintext
39 lines
843 B
Plaintext
|
=== tests/cases/compiler/overloadRet.ts ===
|
||
|
interface I {
|
||
|
>I : I
|
||
|
|
||
|
f(s:string):number;
|
||
|
>f : { (s: string): number; (n: number): string; }
|
||
|
>s : string
|
||
|
|
||
|
f(n:number):string;
|
||
|
>f : { (s: string): number; (n: number): string; }
|
||
|
>n : number
|
||
|
|
||
|
g(n:number):any;
|
||
|
>g : { (n: number): any; (n: number, m: number): string; }
|
||
|
>n : number
|
||
|
|
||
|
g(n:number,m:number):string;
|
||
|
>g : { (n: number): any; (n: number, m: number): string; }
|
||
|
>n : number
|
||
|
>m : number
|
||
|
|
||
|
h(n:number):I;
|
||
|
>h : { (n: number): I; (b: boolean): number; }
|
||
|
>n : number
|
||
|
>I : I
|
||
|
|
||
|
h(b:boolean):number;
|
||
|
>h : { (n: number): I; (b: boolean): number; }
|
||
|
>b : boolean
|
||
|
|
||
|
i(b:boolean):number;
|
||
|
>i : { (b: boolean): number; (b: boolean): any; }
|
||
|
>b : boolean
|
||
|
|
||
|
i(b:boolean):any;
|
||
|
>i : { (b: boolean): number; (b: boolean): any; }
|
||
|
>b : boolean
|
||
|
}
|