TypeScript/tests/baselines/reference/functionOverloads12.types
2016-09-01 14:25:44 -07:00

15 lines
308 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 : true
>"" : ""
>0 : 0