2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/functionOverloads8.ts ===
|
|
|
|
function foo();
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { (): any; (foo: string): any; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function foo(foo:string);
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { (): any; (foo: string): any; }
|
|
|
|
>foo : string
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function foo(foo?:any){ return '' }
|
2015-04-16 01:44:20 +02:00
|
|
|
>foo : { (): any; (foo: string): any; }
|
|
|
|
>foo : any
|
2015-04-13 21:36:11 +02:00
|
|
|
>'' : string
|
2014-08-15 23:33:16 +02:00
|
|
|
|