13 lines
733 B
Text
13 lines
733 B
Text
=== tests/cases/compiler/functionOverloads13.ts ===
|
|
function foo(bar:number):string;
|
|
>foo : Symbol(foo, Decl(functionOverloads13.ts, 0, 0), Decl(functionOverloads13.ts, 0, 32), Decl(functionOverloads13.ts, 1, 32))
|
|
>bar : Symbol(bar, Decl(functionOverloads13.ts, 0, 13))
|
|
|
|
function foo(bar:number):number;
|
|
>foo : Symbol(foo, Decl(functionOverloads13.ts, 0, 0), Decl(functionOverloads13.ts, 0, 32), Decl(functionOverloads13.ts, 1, 32))
|
|
>bar : Symbol(bar, Decl(functionOverloads13.ts, 1, 13))
|
|
|
|
function foo(bar?:number):any { return "" }
|
|
>foo : Symbol(foo, Decl(functionOverloads13.ts, 0, 0), Decl(functionOverloads13.ts, 0, 32), Decl(functionOverloads13.ts, 1, 32))
|
|
>bar : Symbol(bar, Decl(functionOverloads13.ts, 2, 13))
|
|
|