16 lines
387 B
Text
16 lines
387 B
Text
|
=== 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
|
||
|
|