TypeScript/tests/baselines/reference/functionOverloads9.types
2014-08-15 14:37:48 -07:00

15 lines
293 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