TypeScript/tests/baselines/reference/functionOverloads8.types

13 lines
289 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/functionOverloads8.ts ===
function foo();
>foo : { (): any; (foo: string): any; }
function foo(foo:string);
>foo : { (): any; (foo: string): any; }
>foo : string
function foo(foo?:any){ return '' }
>foo : { (): any; (foo: string): any; }
>foo : any