2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/functionOverloads13.ts ===
|
|
|
|
function foo(bar:number):string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : { (bar: number): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads13.ts, 0, 0), Decl(functionOverloads13.ts, 0, 32), Decl(functionOverloads13.ts, 1, 32))
|
|
|
|
>bar : number, Symbol(bar, Decl(functionOverloads13.ts, 0, 13))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function foo(bar:number):number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : { (bar: number): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads13.ts, 0, 0), Decl(functionOverloads13.ts, 0, 32), Decl(functionOverloads13.ts, 1, 32))
|
|
|
|
>bar : number, Symbol(bar, Decl(functionOverloads13.ts, 1, 13))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function foo(bar?:number):any { return "" }
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : { (bar: number): string; (bar: number): number; }, Symbol(foo, Decl(functionOverloads13.ts, 0, 0), Decl(functionOverloads13.ts, 0, 32), Decl(functionOverloads13.ts, 1, 32))
|
|
|
|
>bar : number, Symbol(bar, Decl(functionOverloads13.ts, 2, 13))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
|