TypeScript/tests/baselines/reference/functionOverloads9.types
2014-08-25 10:55:22 -07:00

14 lines
263 B
Text

=== tests/cases/compiler/functionOverloads9.ts ===
function foo(foo:string);
>foo : typeof foo
>foo : string
function foo(foo?:string){ return '' };
>foo : typeof foo
>foo : string
var x = foo('foo');
>x : any
>foo('foo') : any
>foo : typeof foo