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

15 lines
288 B
Text

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