TypeScript/tests/baselines/reference/functionOverloads9.types

15 lines
293 B
Plaintext
Raw Normal View History

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