15 lines
288 B
Text
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
|
|
|