TypeScript/tests/baselines/reference/functionOverloads14.types
2014-08-15 14:37:48 -07:00

16 lines
387 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