TypeScript/tests/baselines/reference/functionOverloads9.types

17 lines
324 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
2014-08-15 23:33:16 +02:00
function foo(foo?:string){ return '' };
>foo : (foo: string) => any
>foo : string
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
var x = foo('foo');
>x : any
2014-08-15 23:33:16 +02:00
>foo('foo') : any
>foo : (foo: string) => any
2015-04-13 21:36:11 +02:00
>'foo' : string
2014-08-15 23:33:16 +02:00