18 lines
991 B
Text
18 lines
991 B
Text
=== tests/cases/compiler/functionOverloads30.ts ===
|
|
function foo(bar:string):string;
|
|
>foo : Symbol(foo, Decl(functionOverloads30.ts, 0, 0), Decl(functionOverloads30.ts, 0, 32), Decl(functionOverloads30.ts, 1, 32))
|
|
>bar : Symbol(bar, Decl(functionOverloads30.ts, 0, 13))
|
|
|
|
function foo(bar:number):number;
|
|
>foo : Symbol(foo, Decl(functionOverloads30.ts, 0, 0), Decl(functionOverloads30.ts, 0, 32), Decl(functionOverloads30.ts, 1, 32))
|
|
>bar : Symbol(bar, Decl(functionOverloads30.ts, 1, 13))
|
|
|
|
function foo(bar:any):any{ return bar }
|
|
>foo : Symbol(foo, Decl(functionOverloads30.ts, 0, 0), Decl(functionOverloads30.ts, 0, 32), Decl(functionOverloads30.ts, 1, 32))
|
|
>bar : Symbol(bar, Decl(functionOverloads30.ts, 2, 13))
|
|
>bar : Symbol(bar, Decl(functionOverloads30.ts, 2, 13))
|
|
|
|
var x = foo('bar');
|
|
>x : Symbol(x, Decl(functionOverloads30.ts, 3, 3))
|
|
>foo : Symbol(foo, Decl(functionOverloads30.ts, 0, 0), Decl(functionOverloads30.ts, 0, 32), Decl(functionOverloads30.ts, 1, 32))
|
|
|