TypeScript/tests/baselines/reference/functionOverloads14.types

17 lines
400 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/functionOverloads14.ts ===
function foo():{a:number;}
>foo : { (): { a: number; }; (): { a: string; }; }
>a : number
2014-08-15 23:33:16 +02:00
function foo():{a:string;}
>foo : { (): { a: number; }; (): { a: string; }; }
>a : string
2014-08-15 23:33:16 +02:00
function foo():{a:any;} { return {a:1} }
>foo : { (): { a: number; }; (): { a: string; }; }
>a : any
2014-08-15 23:33:16 +02:00
>{a:1} : { a: number; }
>a : number
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00