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

17 lines
395 B
Plaintext

=== tests/cases/compiler/functionOverloads14.ts ===
function foo():{a:number;}
>foo : { (): { a: number; }; (): { a: string; }; }
>a : number
function foo():{a:string;}
>foo : { (): { a: number; }; (): { a: string; }; }
>a : string
function foo():{a:any;} { return {a:1} }
>foo : { (): { a: number; }; (): { a: string; }; }
>a : any
>{a:1} : { a: number; }
>a : number
>1 : 1