TypeScript/tests/baselines/reference/functionOverloads9.types
2016-09-01 14:25:44 -07:00

17 lines
319 B
Plaintext

=== 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
>'foo' : "foo"