14 lines
318 B
Plaintext
14 lines
318 B
Plaintext
=== tests/cases/compiler/functionOverloads12.ts ===
|
|
function foo():string;
|
|
>foo : { (): string; (): number; }
|
|
|
|
function foo():number;
|
|
>foo : { (): string; (): number; }
|
|
|
|
function foo():any { if (true) return ""; else return 0;}
|
|
>foo : { (): string; (): number; }
|
|
>true : boolean
|
|
>"" : string
|
|
>0 : number
|
|
|