TypeScript/tests/baselines/reference/functionOverloads12.types
2014-08-25 10:55:22 -07:00

10 lines
223 B
Text

=== tests/cases/compiler/functionOverloads12.ts ===
function foo():string;
>foo : typeof foo
function foo():number;
>foo : typeof foo
function foo():any { if (true) return ""; else return 0;}
>foo : typeof foo