14 lines
263 B
Text
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
|
|
|