TypeScript/tests/baselines/reference/functionOverloads9.types
2015-04-15 16:44:20 -07:00

17 lines
324 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
>'' : string
var x = foo('foo');
>x : any
>foo('foo') : any
>foo : (foo: string) => any
>'foo' : string