22 lines
1.2 KiB
Text
22 lines
1.2 KiB
Text
=== tests/cases/compiler/functionOverloads35.ts ===
|
|
function foo(bar:{a:number;}):number;
|
|
>foo : Symbol(foo, Decl(functionOverloads35.ts, 0, 0), Decl(functionOverloads35.ts, 0, 37), Decl(functionOverloads35.ts, 1, 37))
|
|
>bar : Symbol(bar, Decl(functionOverloads35.ts, 0, 13))
|
|
>a : Symbol(a, Decl(functionOverloads35.ts, 0, 18))
|
|
|
|
function foo(bar:{a:string;}):string;
|
|
>foo : Symbol(foo, Decl(functionOverloads35.ts, 0, 0), Decl(functionOverloads35.ts, 0, 37), Decl(functionOverloads35.ts, 1, 37))
|
|
>bar : Symbol(bar, Decl(functionOverloads35.ts, 1, 13))
|
|
>a : Symbol(a, Decl(functionOverloads35.ts, 1, 18))
|
|
|
|
function foo(bar:{a:any;}):any{ return bar }
|
|
>foo : Symbol(foo, Decl(functionOverloads35.ts, 0, 0), Decl(functionOverloads35.ts, 0, 37), Decl(functionOverloads35.ts, 1, 37))
|
|
>bar : Symbol(bar, Decl(functionOverloads35.ts, 2, 13))
|
|
>a : Symbol(a, Decl(functionOverloads35.ts, 2, 18))
|
|
>bar : Symbol(bar, Decl(functionOverloads35.ts, 2, 13))
|
|
|
|
var x = foo({a:1});
|
|
>x : Symbol(x, Decl(functionOverloads35.ts, 3, 3))
|
|
>foo : Symbol(foo, Decl(functionOverloads35.ts, 0, 0), Decl(functionOverloads35.ts, 0, 37), Decl(functionOverloads35.ts, 1, 37))
|
|
>a : Symbol(a, Decl(functionOverloads35.ts, 3, 13))
|
|
|