14 lines
759 B
Text
14 lines
759 B
Text
=== tests/cases/compiler/functionOverloads14.ts ===
|
|
function foo():{a:number;}
|
|
>foo : Symbol(foo, Decl(functionOverloads14.ts, 0, 0), Decl(functionOverloads14.ts, 0, 26), Decl(functionOverloads14.ts, 1, 26))
|
|
>a : Symbol(a, Decl(functionOverloads14.ts, 0, 16))
|
|
|
|
function foo():{a:string;}
|
|
>foo : Symbol(foo, Decl(functionOverloads14.ts, 0, 0), Decl(functionOverloads14.ts, 0, 26), Decl(functionOverloads14.ts, 1, 26))
|
|
>a : Symbol(a, Decl(functionOverloads14.ts, 1, 16))
|
|
|
|
function foo():{a:any;} { return {a:1} }
|
|
>foo : Symbol(foo, Decl(functionOverloads14.ts, 0, 0), Decl(functionOverloads14.ts, 0, 26), Decl(functionOverloads14.ts, 1, 26))
|
|
>a : Symbol(a, Decl(functionOverloads14.ts, 2, 16))
|
|
>a : Symbol(a, Decl(functionOverloads14.ts, 2, 34))
|
|
|