TypeScript/tests/baselines/reference/functionOverloads8.types

14 lines
303 B
Plaintext
Raw Normal View History

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