17 lines
970 B
Text
17 lines
970 B
Text
=== tests/cases/compiler/functionOverloads16.ts ===
|
|
function foo(foo:{a:string;}):string;
|
|
>foo : Symbol(foo, Decl(functionOverloads16.ts, 0, 0), Decl(functionOverloads16.ts, 0, 37), Decl(functionOverloads16.ts, 1, 37))
|
|
>foo : Symbol(foo, Decl(functionOverloads16.ts, 0, 13))
|
|
>a : Symbol(a, Decl(functionOverloads16.ts, 0, 18))
|
|
|
|
function foo(foo:{a:string;}):number;
|
|
>foo : Symbol(foo, Decl(functionOverloads16.ts, 0, 0), Decl(functionOverloads16.ts, 0, 37), Decl(functionOverloads16.ts, 1, 37))
|
|
>foo : Symbol(foo, Decl(functionOverloads16.ts, 1, 13))
|
|
>a : Symbol(a, Decl(functionOverloads16.ts, 1, 18))
|
|
|
|
function foo(foo:{a:string; b?:number;}):any { return "" }
|
|
>foo : Symbol(foo, Decl(functionOverloads16.ts, 0, 0), Decl(functionOverloads16.ts, 0, 37), Decl(functionOverloads16.ts, 1, 37))
|
|
>foo : Symbol(foo, Decl(functionOverloads16.ts, 2, 13))
|
|
>a : Symbol(a, Decl(functionOverloads16.ts, 2, 18))
|
|
>b : Symbol(b, Decl(functionOverloads16.ts, 2, 27))
|
|
|