15 lines
403 B
Text
15 lines
403 B
Text
|
=== tests/cases/compiler/functionOverloads10.ts ===
|
||
|
function foo(foo:string, bar:number);
|
||
|
>foo : { (foo: string, bar: number): any; (foo: string): any; }
|
||
|
>foo : string
|
||
|
>bar : number
|
||
|
|
||
|
function foo(foo:string);
|
||
|
>foo : { (foo: string, bar: number): any; (foo: string): any; }
|
||
|
>foo : string
|
||
|
|
||
|
function foo(foo:any){ }
|
||
|
>foo : { (foo: string, bar: number): any; (foo: string): any; }
|
||
|
>foo : any
|
||
|
|