18 lines
1,017 B
Text
18 lines
1,017 B
Text
=== tests/cases/compiler/functionOverloads21.ts ===
|
|
function foo(bar:{a:number;}[]);
|
|
>foo : Symbol(foo, Decl(functionOverloads21.ts, 0, 0), Decl(functionOverloads21.ts, 0, 32), Decl(functionOverloads21.ts, 1, 42))
|
|
>bar : Symbol(bar, Decl(functionOverloads21.ts, 0, 13))
|
|
>a : Symbol(a, Decl(functionOverloads21.ts, 0, 18))
|
|
|
|
function foo(bar:{a:number; b:string;}[]);
|
|
>foo : Symbol(foo, Decl(functionOverloads21.ts, 0, 0), Decl(functionOverloads21.ts, 0, 32), Decl(functionOverloads21.ts, 1, 42))
|
|
>bar : Symbol(bar, Decl(functionOverloads21.ts, 1, 13))
|
|
>a : Symbol(a, Decl(functionOverloads21.ts, 1, 18))
|
|
>b : Symbol(b, Decl(functionOverloads21.ts, 1, 27))
|
|
|
|
function foo(bar:{a:any; b?:string;}[]) { return 0 }
|
|
>foo : Symbol(foo, Decl(functionOverloads21.ts, 0, 0), Decl(functionOverloads21.ts, 0, 32), Decl(functionOverloads21.ts, 1, 42))
|
|
>bar : Symbol(bar, Decl(functionOverloads21.ts, 2, 13))
|
|
>a : Symbol(a, Decl(functionOverloads21.ts, 2, 18))
|
|
>b : Symbol(b, Decl(functionOverloads21.ts, 2, 24))
|
|
|