15 lines
401 B
Plaintext
15 lines
401 B
Plaintext
=== tests/cases/compiler/functionOverloads13.ts ===
|
|
function foo(bar:number):string;
|
|
>foo : { (bar: number): string; (bar: number): number; }
|
|
>bar : number
|
|
|
|
function foo(bar:number):number;
|
|
>foo : { (bar: number): string; (bar: number): number; }
|
|
>bar : number
|
|
|
|
function foo(bar?:number):any { return "" }
|
|
>foo : { (bar: number): string; (bar: number): number; }
|
|
>bar : number
|
|
>"" : ""
|
|
|