TypeScript/tests/baselines/reference/functionOverloads12.types

11 lines
274 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== 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; }