TypeScript/tests/baselines/reference/subtypingWithCallSignatures2.types

975 lines
69 KiB
Text

=== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures2.ts ===
// checking subtype relations for function types as it relates to contextual signature instantiation
class Base { foo: string; }
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>foo : string, Symbol(foo,Decl(subtypingWithCallSignatures2.ts,2,12))
class Derived extends Base { bar: string; }
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>bar : string, Symbol(bar,Decl(subtypingWithCallSignatures2.ts,3,28))
class Derived2 extends Derived { baz: string; }
>Derived2 : Derived2, Symbol(Derived2,Decl(subtypingWithCallSignatures2.ts,3,43))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>baz : string, Symbol(baz,Decl(subtypingWithCallSignatures2.ts,4,32))
class OtherDerived extends Base { bing: string; }
>OtherDerived : OtherDerived, Symbol(OtherDerived,Decl(subtypingWithCallSignatures2.ts,4,47))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>bing : string, Symbol(bing,Decl(subtypingWithCallSignatures2.ts,5,33))
declare function foo1(a: (x: number) => number[]): typeof a;
>foo1 : { (a: (x: number) => number[]): (x: number) => number[]; (a: any): any; }, Symbol(foo1,Decl(subtypingWithCallSignatures2.ts,5,49),Decl(subtypingWithCallSignatures2.ts,7,60))
>a : (x: number) => number[], Symbol(a,Decl(subtypingWithCallSignatures2.ts,7,22))
>x : number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,7,26))
>a : (x: number) => number[], Symbol(a,Decl(subtypingWithCallSignatures2.ts,7,22))
declare function foo1(a: any): any;
>foo1 : { (a: (x: number) => number[]): (x: number) => number[]; (a: any): any; }, Symbol(foo1,Decl(subtypingWithCallSignatures2.ts,5,49),Decl(subtypingWithCallSignatures2.ts,7,60))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,8,22))
declare function foo2(a: (x: number) => string[]): typeof a;
>foo2 : { (a: (x: number) => string[]): (x: number) => string[]; (a: any): any; }, Symbol(foo2,Decl(subtypingWithCallSignatures2.ts,8,35),Decl(subtypingWithCallSignatures2.ts,10,60))
>a : (x: number) => string[], Symbol(a,Decl(subtypingWithCallSignatures2.ts,10,22))
>x : number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,10,26))
>a : (x: number) => string[], Symbol(a,Decl(subtypingWithCallSignatures2.ts,10,22))
declare function foo2(a: any): any;
>foo2 : { (a: (x: number) => string[]): (x: number) => string[]; (a: any): any; }, Symbol(foo2,Decl(subtypingWithCallSignatures2.ts,8,35),Decl(subtypingWithCallSignatures2.ts,10,60))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,11,22))
declare function foo3(a: (x: number) => void): typeof a;
>foo3 : { (a: (x: number) => void): (x: number) => void; (a: any): any; }, Symbol(foo3,Decl(subtypingWithCallSignatures2.ts,11,35),Decl(subtypingWithCallSignatures2.ts,13,56))
>a : (x: number) => void, Symbol(a,Decl(subtypingWithCallSignatures2.ts,13,22))
>x : number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,13,26))
>a : (x: number) => void, Symbol(a,Decl(subtypingWithCallSignatures2.ts,13,22))
declare function foo3(a: any): any;
>foo3 : { (a: (x: number) => void): (x: number) => void; (a: any): any; }, Symbol(foo3,Decl(subtypingWithCallSignatures2.ts,11,35),Decl(subtypingWithCallSignatures2.ts,13,56))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,14,22))
declare function foo4(a: (x: string, y: number) => string): typeof a;
>foo4 : { (a: (x: string, y: number) => string): (x: string, y: number) => string; (a: any): any; }, Symbol(foo4,Decl(subtypingWithCallSignatures2.ts,14,35),Decl(subtypingWithCallSignatures2.ts,16,69))
>a : (x: string, y: number) => string, Symbol(a,Decl(subtypingWithCallSignatures2.ts,16,22))
>x : string, Symbol(x,Decl(subtypingWithCallSignatures2.ts,16,26))
>y : number, Symbol(y,Decl(subtypingWithCallSignatures2.ts,16,36))
>a : (x: string, y: number) => string, Symbol(a,Decl(subtypingWithCallSignatures2.ts,16,22))
declare function foo4(a: any): any;
>foo4 : { (a: (x: string, y: number) => string): (x: string, y: number) => string; (a: any): any; }, Symbol(foo4,Decl(subtypingWithCallSignatures2.ts,14,35),Decl(subtypingWithCallSignatures2.ts,16,69))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,17,22))
declare function foo5(a: (x: (arg: string) => number) => string): typeof a;
>foo5 : { (a: (x: (arg: string) => number) => string): (x: (arg: string) => number) => string; (a: any): any; }, Symbol(foo5,Decl(subtypingWithCallSignatures2.ts,17,35),Decl(subtypingWithCallSignatures2.ts,19,75))
>a : (x: (arg: string) => number) => string, Symbol(a,Decl(subtypingWithCallSignatures2.ts,19,22))
>x : (arg: string) => number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,19,26))
>arg : string, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,19,30))
>a : (x: (arg: string) => number) => string, Symbol(a,Decl(subtypingWithCallSignatures2.ts,19,22))
declare function foo5(a: any): any;
>foo5 : { (a: (x: (arg: string) => number) => string): (x: (arg: string) => number) => string; (a: any): any; }, Symbol(foo5,Decl(subtypingWithCallSignatures2.ts,17,35),Decl(subtypingWithCallSignatures2.ts,19,75))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,20,22))
declare function foo6(a: (x: (arg: Base) => Derived) => Base): typeof a;
>foo6 : { (a: (x: (arg: Base) => Derived) => Base): (x: (arg: Base) => Derived) => Base; (a: any): any; }, Symbol(foo6,Decl(subtypingWithCallSignatures2.ts,20,35),Decl(subtypingWithCallSignatures2.ts,22,72))
>a : (x: (arg: Base) => Derived) => Base, Symbol(a,Decl(subtypingWithCallSignatures2.ts,22,22))
>x : (arg: Base) => Derived, Symbol(x,Decl(subtypingWithCallSignatures2.ts,22,26))
>arg : Base, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,22,30))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>a : (x: (arg: Base) => Derived) => Base, Symbol(a,Decl(subtypingWithCallSignatures2.ts,22,22))
declare function foo6(a: any): any;
>foo6 : { (a: (x: (arg: Base) => Derived) => Base): (x: (arg: Base) => Derived) => Base; (a: any): any; }, Symbol(foo6,Decl(subtypingWithCallSignatures2.ts,20,35),Decl(subtypingWithCallSignatures2.ts,22,72))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,23,22))
declare function foo7(a: (x: (arg: Base) => Derived) => (r: Base) => Derived): typeof a;
>foo7 : { (a: (x: (arg: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived) => (r: Base) => Derived; (a: any): any; }, Symbol(foo7,Decl(subtypingWithCallSignatures2.ts,23,35),Decl(subtypingWithCallSignatures2.ts,25,88))
>a : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a,Decl(subtypingWithCallSignatures2.ts,25,22))
>x : (arg: Base) => Derived, Symbol(x,Decl(subtypingWithCallSignatures2.ts,25,26))
>arg : Base, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,25,30))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>r : Base, Symbol(r,Decl(subtypingWithCallSignatures2.ts,25,57))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>a : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(a,Decl(subtypingWithCallSignatures2.ts,25,22))
declare function foo7(a: any): any;
>foo7 : { (a: (x: (arg: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived) => (r: Base) => Derived; (a: any): any; }, Symbol(foo7,Decl(subtypingWithCallSignatures2.ts,23,35),Decl(subtypingWithCallSignatures2.ts,25,88))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,26,22))
declare function foo8(a: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): typeof a;
>foo8 : { (a: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; (a: any): any; }, Symbol(foo8,Decl(subtypingWithCallSignatures2.ts,26,35),Decl(subtypingWithCallSignatures2.ts,28,116))
>a : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a,Decl(subtypingWithCallSignatures2.ts,28,22))
>x : (arg: Base) => Derived, Symbol(x,Decl(subtypingWithCallSignatures2.ts,28,26))
>arg : Base, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,28,30))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>y : (arg2: Base) => Derived, Symbol(y,Decl(subtypingWithCallSignatures2.ts,28,52))
>arg2 : Base, Symbol(arg2,Decl(subtypingWithCallSignatures2.ts,28,57))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>r : Base, Symbol(r,Decl(subtypingWithCallSignatures2.ts,28,85))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>a : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a,Decl(subtypingWithCallSignatures2.ts,28,22))
declare function foo8(a: any): any;
>foo8 : { (a: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; (a: any): any; }, Symbol(foo8,Decl(subtypingWithCallSignatures2.ts,26,35),Decl(subtypingWithCallSignatures2.ts,28,116))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,29,22))
declare function foo9(a: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): typeof a;
>foo9 : { (a: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; (a: any): any; }, Symbol(foo9,Decl(subtypingWithCallSignatures2.ts,29,35),Decl(subtypingWithCallSignatures2.ts,31,116))
>a : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a,Decl(subtypingWithCallSignatures2.ts,31,22))
>x : (arg: Base) => Derived, Symbol(x,Decl(subtypingWithCallSignatures2.ts,31,26))
>arg : Base, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,31,30))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>y : (arg2: Base) => Derived, Symbol(y,Decl(subtypingWithCallSignatures2.ts,31,52))
>arg2 : Base, Symbol(arg2,Decl(subtypingWithCallSignatures2.ts,31,57))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>r : Base, Symbol(r,Decl(subtypingWithCallSignatures2.ts,31,85))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>a : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(a,Decl(subtypingWithCallSignatures2.ts,31,22))
declare function foo9(a: any): any;
>foo9 : { (a: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; (a: any): any; }, Symbol(foo9,Decl(subtypingWithCallSignatures2.ts,29,35),Decl(subtypingWithCallSignatures2.ts,31,116))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,32,22))
declare function foo10(a: (...x: Derived[]) => Derived): typeof a;
>foo10 : { (a: (...x: Derived[]) => Derived): (...x: Derived[]) => Derived; (a: any): any; }, Symbol(foo10,Decl(subtypingWithCallSignatures2.ts,32,35),Decl(subtypingWithCallSignatures2.ts,34,66))
>a : (...x: Derived[]) => Derived, Symbol(a,Decl(subtypingWithCallSignatures2.ts,34,23))
>x : Derived[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,34,27))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>a : (...x: Derived[]) => Derived, Symbol(a,Decl(subtypingWithCallSignatures2.ts,34,23))
declare function foo10(a: any): any;
>foo10 : { (a: (...x: Derived[]) => Derived): (...x: Derived[]) => Derived; (a: any): any; }, Symbol(foo10,Decl(subtypingWithCallSignatures2.ts,32,35),Decl(subtypingWithCallSignatures2.ts,34,66))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,35,23))
declare function foo11(a: (x: { foo: string }, y: { foo: string; bar: string }) => Base): typeof a;
>foo11 : { (a: (x: { foo: string; }, y: { foo: string; bar: string; }) => Base): (x: { foo: string; }, y: { foo: string; bar: string; }) => Base; (a: any): any; }, Symbol(foo11,Decl(subtypingWithCallSignatures2.ts,35,36),Decl(subtypingWithCallSignatures2.ts,37,99))
>a : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a,Decl(subtypingWithCallSignatures2.ts,37,23))
>x : { foo: string; }, Symbol(x,Decl(subtypingWithCallSignatures2.ts,37,27))
>foo : string, Symbol(foo,Decl(subtypingWithCallSignatures2.ts,37,31))
>y : { foo: string; bar: string; }, Symbol(y,Decl(subtypingWithCallSignatures2.ts,37,46))
>foo : string, Symbol(foo,Decl(subtypingWithCallSignatures2.ts,37,51))
>bar : string, Symbol(bar,Decl(subtypingWithCallSignatures2.ts,37,64))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>a : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(a,Decl(subtypingWithCallSignatures2.ts,37,23))
declare function foo11(a: any): any;
>foo11 : { (a: (x: { foo: string; }, y: { foo: string; bar: string; }) => Base): (x: { foo: string; }, y: { foo: string; bar: string; }) => Base; (a: any): any; }, Symbol(foo11,Decl(subtypingWithCallSignatures2.ts,35,36),Decl(subtypingWithCallSignatures2.ts,37,99))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,38,23))
declare function foo12(a: (x: Array<Base>, y: Array<Derived2>) => Array<Derived>): typeof a;
>foo12 : { (a: (x: Base[], y: Derived2[]) => Derived[]): (x: Base[], y: Derived2[]) => Derived[]; (a: any): any; }, Symbol(foo12,Decl(subtypingWithCallSignatures2.ts,38,36),Decl(subtypingWithCallSignatures2.ts,40,92))
>a : (x: Base[], y: Derived2[]) => Derived[], Symbol(a,Decl(subtypingWithCallSignatures2.ts,40,23))
>x : Base[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,40,27))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>y : Derived2[], Symbol(y,Decl(subtypingWithCallSignatures2.ts,40,42))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived2 : Derived2, Symbol(Derived2,Decl(subtypingWithCallSignatures2.ts,3,43))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>a : (x: Base[], y: Derived2[]) => Derived[], Symbol(a,Decl(subtypingWithCallSignatures2.ts,40,23))
declare function foo12(a: any): any;
>foo12 : { (a: (x: Base[], y: Derived2[]) => Derived[]): (x: Base[], y: Derived2[]) => Derived[]; (a: any): any; }, Symbol(foo12,Decl(subtypingWithCallSignatures2.ts,38,36),Decl(subtypingWithCallSignatures2.ts,40,92))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,41,23))
declare function foo13(a: (x: Array<Base>, y: Array<Derived>) => Array<Derived>): typeof a;
>foo13 : { (a: (x: Base[], y: Derived[]) => Derived[]): (x: Base[], y: Derived[]) => Derived[]; (a: any): any; }, Symbol(foo13,Decl(subtypingWithCallSignatures2.ts,41,36),Decl(subtypingWithCallSignatures2.ts,43,91))
>a : (x: Base[], y: Derived[]) => Derived[], Symbol(a,Decl(subtypingWithCallSignatures2.ts,43,23))
>x : Base[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,43,27))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>y : Derived[], Symbol(y,Decl(subtypingWithCallSignatures2.ts,43,42))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>a : (x: Base[], y: Derived[]) => Derived[], Symbol(a,Decl(subtypingWithCallSignatures2.ts,43,23))
declare function foo13(a: any): any;
>foo13 : { (a: (x: Base[], y: Derived[]) => Derived[]): (x: Base[], y: Derived[]) => Derived[]; (a: any): any; }, Symbol(foo13,Decl(subtypingWithCallSignatures2.ts,41,36),Decl(subtypingWithCallSignatures2.ts,43,91))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,44,23))
declare function foo14(a: (x: { a: string; b: number }) => Object): typeof a;
>foo14 : { (a: (x: { a: string; b: number; }) => Object): (x: { a: string; b: number; }) => Object; (a: any): any; }, Symbol(foo14,Decl(subtypingWithCallSignatures2.ts,44,36),Decl(subtypingWithCallSignatures2.ts,46,77))
>a : (x: { a: string; b: number; }) => Object, Symbol(a,Decl(subtypingWithCallSignatures2.ts,46,23))
>x : { a: string; b: number; }, Symbol(x,Decl(subtypingWithCallSignatures2.ts,46,27))
>a : string, Symbol(a,Decl(subtypingWithCallSignatures2.ts,46,31))
>b : number, Symbol(b,Decl(subtypingWithCallSignatures2.ts,46,42))
>Object : Object, Symbol(Object,Decl(lib.d.ts,92,1),Decl(lib.d.ts,223,11))
>a : (x: { a: string; b: number; }) => Object, Symbol(a,Decl(subtypingWithCallSignatures2.ts,46,23))
declare function foo14(a: any): any;
>foo14 : { (a: (x: { a: string; b: number; }) => Object): (x: { a: string; b: number; }) => Object; (a: any): any; }, Symbol(foo14,Decl(subtypingWithCallSignatures2.ts,44,36),Decl(subtypingWithCallSignatures2.ts,46,77))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,47,23))
declare function foo15(a: {
>foo15 : { (a: { (x: number): number[]; (x: string): string[]; }): { (x: number): number[]; (x: string): string[]; }; (a: any): any; }, Symbol(foo15,Decl(subtypingWithCallSignatures2.ts,47,36),Decl(subtypingWithCallSignatures2.ts,52,13))
>a : { (x: number): number[]; (x: string): string[]; }, Symbol(a,Decl(subtypingWithCallSignatures2.ts,49,23))
(x: number): number[];
>x : number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,50,5))
(x: string): string[];
>x : string, Symbol(x,Decl(subtypingWithCallSignatures2.ts,51,5))
}): typeof a;
>a : { (x: number): number[]; (x: string): string[]; }, Symbol(a,Decl(subtypingWithCallSignatures2.ts,49,23))
declare function foo15(a: any): any;
>foo15 : { (a: { (x: number): number[]; (x: string): string[]; }): { (x: number): number[]; (x: string): string[]; }; (a: any): any; }, Symbol(foo15,Decl(subtypingWithCallSignatures2.ts,47,36),Decl(subtypingWithCallSignatures2.ts,52,13))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,53,23))
declare function foo16(a: {
>foo16 : { (a: { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }): { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }; (a: any): any; }, Symbol(foo16,Decl(subtypingWithCallSignatures2.ts,53,36),Decl(subtypingWithCallSignatures2.ts,58,13))
>a : { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }, Symbol(a,Decl(subtypingWithCallSignatures2.ts,55,23))
<T extends Derived>(x: T): number[];
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,56,5))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,56,24))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,56,5))
<U extends Base>(x: U): number[];
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,57,5))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>x : U, Symbol(x,Decl(subtypingWithCallSignatures2.ts,57,21))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,57,5))
}): typeof a;
>a : { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }, Symbol(a,Decl(subtypingWithCallSignatures2.ts,55,23))
declare function foo16(a: any): any;
>foo16 : { (a: { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }): { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }; (a: any): any; }, Symbol(foo16,Decl(subtypingWithCallSignatures2.ts,53,36),Decl(subtypingWithCallSignatures2.ts,58,13))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,59,23))
declare function foo17(a: {
>foo17 : { (a: { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }): { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }; (a: any): any; }, Symbol(foo17,Decl(subtypingWithCallSignatures2.ts,59,36),Decl(subtypingWithCallSignatures2.ts,64,13))
>a : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }, Symbol(a,Decl(subtypingWithCallSignatures2.ts,61,23))
(x: (a: number) => number): number[];
>x : (a: number) => number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,62,5))
>a : number, Symbol(a,Decl(subtypingWithCallSignatures2.ts,62,9))
(x: (a: string) => string): string[];
>x : (a: string) => string, Symbol(x,Decl(subtypingWithCallSignatures2.ts,63,5))
>a : string, Symbol(a,Decl(subtypingWithCallSignatures2.ts,63,9))
}): typeof a;
>a : { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }, Symbol(a,Decl(subtypingWithCallSignatures2.ts,61,23))
declare function foo17(a: any): any;
>foo17 : { (a: { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }): { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }; (a: any): any; }, Symbol(foo17,Decl(subtypingWithCallSignatures2.ts,59,36),Decl(subtypingWithCallSignatures2.ts,64,13))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,65,23))
declare function foo18(a: {
>foo18 : { (a: { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }): { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }; (a: any): any; }, Symbol(foo18,Decl(subtypingWithCallSignatures2.ts,65,36),Decl(subtypingWithCallSignatures2.ts,76,13))
>a : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }, Symbol(a,Decl(subtypingWithCallSignatures2.ts,67,23))
(x: {
>x : { (a: number): number; (a: string): string; }, Symbol(x,Decl(subtypingWithCallSignatures2.ts,68,5))
(a: number): number;
>a : number, Symbol(a,Decl(subtypingWithCallSignatures2.ts,69,9))
(a: string): string;
>a : string, Symbol(a,Decl(subtypingWithCallSignatures2.ts,70,9))
}): any[];
(x: {
>x : { (a: boolean): boolean; (a: Date): Date; }, Symbol(x,Decl(subtypingWithCallSignatures2.ts,72,5))
(a: boolean): boolean;
>a : boolean, Symbol(a,Decl(subtypingWithCallSignatures2.ts,73,9))
(a: Date): Date;
>a : Date, Symbol(a,Decl(subtypingWithCallSignatures2.ts,74,9))
>Date : Date, Symbol(Date,Decl(lib.d.ts,633,23),Decl(lib.d.ts,815,11))
>Date : Date, Symbol(Date,Decl(lib.d.ts,633,23),Decl(lib.d.ts,815,11))
}): any[];
}): typeof a;
>a : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }, Symbol(a,Decl(subtypingWithCallSignatures2.ts,67,23))
declare function foo18(a: any): any;
>foo18 : { (a: { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }): { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }; (a: any): any; }, Symbol(foo18,Decl(subtypingWithCallSignatures2.ts,65,36),Decl(subtypingWithCallSignatures2.ts,76,13))
>a : any, Symbol(a,Decl(subtypingWithCallSignatures2.ts,77,23))
var r1arg1 = <T>(x: T) => [x];
>r1arg1 : <T>(x: T) => T[], Symbol(r1arg1,Decl(subtypingWithCallSignatures2.ts,79,3))
><T>(x: T) => [x] : <T>(x: T) => T[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,79,14))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,79,17))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,79,14))
>[x] : T[]
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,79,17))
var r1arg2 = (x: number) => [1];
>r1arg2 : (x: number) => number[], Symbol(r1arg2,Decl(subtypingWithCallSignatures2.ts,80,3))
>(x: number) => [1] : (x: number) => number[]
>x : number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,80,14))
>[1] : number[]
>1 : number
var r1 = foo1(r1arg1); // any, return types are not subtype of first overload
>r1 : any, Symbol(r1,Decl(subtypingWithCallSignatures2.ts,81,3))
>foo1(r1arg1) : any
>foo1 : { (a: (x: number) => number[]): (x: number) => number[]; (a: any): any; }, Symbol(foo1,Decl(subtypingWithCallSignatures2.ts,5,49),Decl(subtypingWithCallSignatures2.ts,7,60))
>r1arg1 : <T>(x: T) => T[], Symbol(r1arg1,Decl(subtypingWithCallSignatures2.ts,79,3))
var r1a = [r1arg2, r1arg1]; // generic signature, subtype in both directions
>r1a : (<T>(x: T) => T[])[], Symbol(r1a,Decl(subtypingWithCallSignatures2.ts,82,3))
>[r1arg2, r1arg1] : (<T>(x: T) => T[])[]
>r1arg2 : (x: number) => number[], Symbol(r1arg2,Decl(subtypingWithCallSignatures2.ts,80,3))
>r1arg1 : <T>(x: T) => T[], Symbol(r1arg1,Decl(subtypingWithCallSignatures2.ts,79,3))
var r1b = [r1arg1, r1arg2]; // generic signature, subtype in both directions
>r1b : (<T>(x: T) => T[])[], Symbol(r1b,Decl(subtypingWithCallSignatures2.ts,83,3))
>[r1arg1, r1arg2] : (<T>(x: T) => T[])[]
>r1arg1 : <T>(x: T) => T[], Symbol(r1arg1,Decl(subtypingWithCallSignatures2.ts,79,3))
>r1arg2 : (x: number) => number[], Symbol(r1arg2,Decl(subtypingWithCallSignatures2.ts,80,3))
var r2arg1 = <T>(x: T) => [''];
>r2arg1 : <T>(x: T) => string[], Symbol(r2arg1,Decl(subtypingWithCallSignatures2.ts,85,3))
><T>(x: T) => [''] : <T>(x: T) => string[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,85,14))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,85,17))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,85,14))
>[''] : string[]
>'' : string
var r2arg2 = (x: number) => [''];
>r2arg2 : (x: number) => string[], Symbol(r2arg2,Decl(subtypingWithCallSignatures2.ts,86,3))
>(x: number) => [''] : (x: number) => string[]
>x : number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,86,14))
>[''] : string[]
>'' : string
var r2 = foo2(r2arg1);
>r2 : (x: number) => string[], Symbol(r2,Decl(subtypingWithCallSignatures2.ts,87,3))
>foo2(r2arg1) : (x: number) => string[]
>foo2 : { (a: (x: number) => string[]): (x: number) => string[]; (a: any): any; }, Symbol(foo2,Decl(subtypingWithCallSignatures2.ts,8,35),Decl(subtypingWithCallSignatures2.ts,10,60))
>r2arg1 : <T>(x: T) => string[], Symbol(r2arg1,Decl(subtypingWithCallSignatures2.ts,85,3))
var r2a = [r2arg1, r2arg2];
>r2a : (<T>(x: T) => string[])[], Symbol(r2a,Decl(subtypingWithCallSignatures2.ts,88,3))
>[r2arg1, r2arg2] : (<T>(x: T) => string[])[]
>r2arg1 : <T>(x: T) => string[], Symbol(r2arg1,Decl(subtypingWithCallSignatures2.ts,85,3))
>r2arg2 : (x: number) => string[], Symbol(r2arg2,Decl(subtypingWithCallSignatures2.ts,86,3))
var r2b = [r2arg2, r2arg1];
>r2b : (<T>(x: T) => string[])[], Symbol(r2b,Decl(subtypingWithCallSignatures2.ts,89,3))
>[r2arg2, r2arg1] : (<T>(x: T) => string[])[]
>r2arg2 : (x: number) => string[], Symbol(r2arg2,Decl(subtypingWithCallSignatures2.ts,86,3))
>r2arg1 : <T>(x: T) => string[], Symbol(r2arg1,Decl(subtypingWithCallSignatures2.ts,85,3))
var r3arg1 = <T>(x: T) => x;
>r3arg1 : <T>(x: T) => T, Symbol(r3arg1,Decl(subtypingWithCallSignatures2.ts,91,3))
><T>(x: T) => x : <T>(x: T) => T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,91,14))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,91,17))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,91,14))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,91,17))
var r3arg2 = (x: number) => { };
>r3arg2 : (x: number) => void, Symbol(r3arg2,Decl(subtypingWithCallSignatures2.ts,92,3))
>(x: number) => { } : (x: number) => void
>x : number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,92,14))
var r3 = foo3(r3arg1);
>r3 : (x: number) => void, Symbol(r3,Decl(subtypingWithCallSignatures2.ts,93,3))
>foo3(r3arg1) : (x: number) => void
>foo3 : { (a: (x: number) => void): (x: number) => void; (a: any): any; }, Symbol(foo3,Decl(subtypingWithCallSignatures2.ts,11,35),Decl(subtypingWithCallSignatures2.ts,13,56))
>r3arg1 : <T>(x: T) => T, Symbol(r3arg1,Decl(subtypingWithCallSignatures2.ts,91,3))
var r3a = [r3arg1, r3arg2];
>r3a : (<T>(x: T) => T)[], Symbol(r3a,Decl(subtypingWithCallSignatures2.ts,94,3))
>[r3arg1, r3arg2] : (<T>(x: T) => T)[]
>r3arg1 : <T>(x: T) => T, Symbol(r3arg1,Decl(subtypingWithCallSignatures2.ts,91,3))
>r3arg2 : (x: number) => void, Symbol(r3arg2,Decl(subtypingWithCallSignatures2.ts,92,3))
var r3b = [r3arg2, r3arg1];
>r3b : (<T>(x: T) => T)[], Symbol(r3b,Decl(subtypingWithCallSignatures2.ts,95,3))
>[r3arg2, r3arg1] : (<T>(x: T) => T)[]
>r3arg2 : (x: number) => void, Symbol(r3arg2,Decl(subtypingWithCallSignatures2.ts,92,3))
>r3arg1 : <T>(x: T) => T, Symbol(r3arg1,Decl(subtypingWithCallSignatures2.ts,91,3))
var r4arg1 = <T, U>(x: T, y: U) => x;
>r4arg1 : <T, U>(x: T, y: U) => T, Symbol(r4arg1,Decl(subtypingWithCallSignatures2.ts,97,3))
><T, U>(x: T, y: U) => x : <T, U>(x: T, y: U) => T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,97,14))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,97,16))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,97,20))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,97,14))
>y : U, Symbol(y,Decl(subtypingWithCallSignatures2.ts,97,25))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,97,16))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,97,20))
var r4arg2 = (x: string, y: number) => '';
>r4arg2 : (x: string, y: number) => string, Symbol(r4arg2,Decl(subtypingWithCallSignatures2.ts,98,3))
>(x: string, y: number) => '' : (x: string, y: number) => string
>x : string, Symbol(x,Decl(subtypingWithCallSignatures2.ts,98,14))
>y : number, Symbol(y,Decl(subtypingWithCallSignatures2.ts,98,24))
>'' : string
var r4 = foo4(r4arg1); // any
>r4 : any, Symbol(r4,Decl(subtypingWithCallSignatures2.ts,99,3))
>foo4(r4arg1) : any
>foo4 : { (a: (x: string, y: number) => string): (x: string, y: number) => string; (a: any): any; }, Symbol(foo4,Decl(subtypingWithCallSignatures2.ts,14,35),Decl(subtypingWithCallSignatures2.ts,16,69))
>r4arg1 : <T, U>(x: T, y: U) => T, Symbol(r4arg1,Decl(subtypingWithCallSignatures2.ts,97,3))
var r4a = [r4arg1, r4arg2];
>r4a : (<T, U>(x: T, y: U) => T)[], Symbol(r4a,Decl(subtypingWithCallSignatures2.ts,100,3))
>[r4arg1, r4arg2] : (<T, U>(x: T, y: U) => T)[]
>r4arg1 : <T, U>(x: T, y: U) => T, Symbol(r4arg1,Decl(subtypingWithCallSignatures2.ts,97,3))
>r4arg2 : (x: string, y: number) => string, Symbol(r4arg2,Decl(subtypingWithCallSignatures2.ts,98,3))
var r4b = [r4arg2, r4arg1];
>r4b : (<T, U>(x: T, y: U) => T)[], Symbol(r4b,Decl(subtypingWithCallSignatures2.ts,101,3))
>[r4arg2, r4arg1] : (<T, U>(x: T, y: U) => T)[]
>r4arg2 : (x: string, y: number) => string, Symbol(r4arg2,Decl(subtypingWithCallSignatures2.ts,98,3))
>r4arg1 : <T, U>(x: T, y: U) => T, Symbol(r4arg1,Decl(subtypingWithCallSignatures2.ts,97,3))
var r5arg1 = <T, U>(x: (arg: T) => U) => <T>null;
>r5arg1 : <T, U>(x: (arg: T) => U) => T, Symbol(r5arg1,Decl(subtypingWithCallSignatures2.ts,103,3))
><T, U>(x: (arg: T) => U) => <T>null : <T, U>(x: (arg: T) => U) => T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,103,14))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,103,16))
>x : (arg: T) => U, Symbol(x,Decl(subtypingWithCallSignatures2.ts,103,20))
>arg : T, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,103,24))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,103,14))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,103,16))
><T>null : T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,103,14))
>null : null
var r5arg2 = (x: (arg: string) => number) => '';
>r5arg2 : (x: (arg: string) => number) => string, Symbol(r5arg2,Decl(subtypingWithCallSignatures2.ts,104,3))
>(x: (arg: string) => number) => '' : (x: (arg: string) => number) => string
>x : (arg: string) => number, Symbol(x,Decl(subtypingWithCallSignatures2.ts,104,14))
>arg : string, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,104,18))
>'' : string
var r5 = foo5(r5arg1); // any
>r5 : any, Symbol(r5,Decl(subtypingWithCallSignatures2.ts,105,3))
>foo5(r5arg1) : any
>foo5 : { (a: (x: (arg: string) => number) => string): (x: (arg: string) => number) => string; (a: any): any; }, Symbol(foo5,Decl(subtypingWithCallSignatures2.ts,17,35),Decl(subtypingWithCallSignatures2.ts,19,75))
>r5arg1 : <T, U>(x: (arg: T) => U) => T, Symbol(r5arg1,Decl(subtypingWithCallSignatures2.ts,103,3))
var r5a = [r5arg1, r5arg2];
>r5a : (<T, U>(x: (arg: T) => U) => T)[], Symbol(r5a,Decl(subtypingWithCallSignatures2.ts,106,3))
>[r5arg1, r5arg2] : (<T, U>(x: (arg: T) => U) => T)[]
>r5arg1 : <T, U>(x: (arg: T) => U) => T, Symbol(r5arg1,Decl(subtypingWithCallSignatures2.ts,103,3))
>r5arg2 : (x: (arg: string) => number) => string, Symbol(r5arg2,Decl(subtypingWithCallSignatures2.ts,104,3))
var r5b = [r5arg2, r5arg1];
>r5b : (<T, U>(x: (arg: T) => U) => T)[], Symbol(r5b,Decl(subtypingWithCallSignatures2.ts,107,3))
>[r5arg2, r5arg1] : (<T, U>(x: (arg: T) => U) => T)[]
>r5arg2 : (x: (arg: string) => number) => string, Symbol(r5arg2,Decl(subtypingWithCallSignatures2.ts,104,3))
>r5arg1 : <T, U>(x: (arg: T) => U) => T, Symbol(r5arg1,Decl(subtypingWithCallSignatures2.ts,103,3))
var r6arg1 = <T extends Base, U extends Derived>(x: (arg: T) => U) => <T>null;
>r6arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U) => T, Symbol(r6arg1,Decl(subtypingWithCallSignatures2.ts,109,3))
><T extends Base, U extends Derived>(x: (arg: T) => U) => <T>null : <T extends Base, U extends Derived>(x: (arg: T) => U) => T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,109,14))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,109,29))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>x : (arg: T) => U, Symbol(x,Decl(subtypingWithCallSignatures2.ts,109,49))
>arg : T, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,109,53))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,109,14))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,109,29))
><T>null : T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,109,14))
>null : null
var r6arg2 = (x: (arg: Base) => Derived) => <Base>null;
>r6arg2 : (x: (arg: Base) => Derived) => Base, Symbol(r6arg2,Decl(subtypingWithCallSignatures2.ts,110,3))
>(x: (arg: Base) => Derived) => <Base>null : (x: (arg: Base) => Derived) => Base
>x : (arg: Base) => Derived, Symbol(x,Decl(subtypingWithCallSignatures2.ts,110,14))
>arg : Base, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,110,18))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
><Base>null : Base
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>null : null
var r6 = foo6(r6arg1); // any
>r6 : any, Symbol(r6,Decl(subtypingWithCallSignatures2.ts,111,3))
>foo6(r6arg1) : any
>foo6 : { (a: (x: (arg: Base) => Derived) => Base): (x: (arg: Base) => Derived) => Base; (a: any): any; }, Symbol(foo6,Decl(subtypingWithCallSignatures2.ts,20,35),Decl(subtypingWithCallSignatures2.ts,22,72))
>r6arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U) => T, Symbol(r6arg1,Decl(subtypingWithCallSignatures2.ts,109,3))
var r6a = [r6arg1, r6arg2];
>r6a : (<T extends Base, U extends Derived>(x: (arg: T) => U) => T)[], Symbol(r6a,Decl(subtypingWithCallSignatures2.ts,112,3))
>[r6arg1, r6arg2] : (<T extends Base, U extends Derived>(x: (arg: T) => U) => T)[]
>r6arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U) => T, Symbol(r6arg1,Decl(subtypingWithCallSignatures2.ts,109,3))
>r6arg2 : (x: (arg: Base) => Derived) => Base, Symbol(r6arg2,Decl(subtypingWithCallSignatures2.ts,110,3))
var r6b = [r6arg2, r6arg1];
>r6b : (<T extends Base, U extends Derived>(x: (arg: T) => U) => T)[], Symbol(r6b,Decl(subtypingWithCallSignatures2.ts,113,3))
>[r6arg2, r6arg1] : (<T extends Base, U extends Derived>(x: (arg: T) => U) => T)[]
>r6arg2 : (x: (arg: Base) => Derived) => Base, Symbol(r6arg2,Decl(subtypingWithCallSignatures2.ts,110,3))
>r6arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U) => T, Symbol(r6arg1,Decl(subtypingWithCallSignatures2.ts,109,3))
var r7arg1 = <T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => <U>null;
>r7arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U, Symbol(r7arg1,Decl(subtypingWithCallSignatures2.ts,115,3))
><T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => <U>null : <T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,115,14))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,115,29))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>x : (arg: T) => U, Symbol(x,Decl(subtypingWithCallSignatures2.ts,115,49))
>arg : T, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,115,53))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,115,14))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,115,29))
>(r: T) => <U>null : (r: T) => U
>r : T, Symbol(r,Decl(subtypingWithCallSignatures2.ts,115,71))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,115,14))
><U>null : U
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,115,29))
>null : null
var r7arg2 = (x: (arg: Base) => Derived) => (r: Base) => <Derived>null;
>r7arg2 : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(r7arg2,Decl(subtypingWithCallSignatures2.ts,116,3))
>(x: (arg: Base) => Derived) => (r: Base) => <Derived>null : (x: (arg: Base) => Derived) => (r: Base) => Derived
>x : (arg: Base) => Derived, Symbol(x,Decl(subtypingWithCallSignatures2.ts,116,14))
>arg : Base, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,116,18))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>(r: Base) => <Derived>null : (r: Base) => Derived
>r : Base, Symbol(r,Decl(subtypingWithCallSignatures2.ts,116,45))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
><Derived>null : Derived
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>null : null
var r7 = foo7(r7arg1); // any
>r7 : any, Symbol(r7,Decl(subtypingWithCallSignatures2.ts,117,3))
>foo7(r7arg1) : any
>foo7 : { (a: (x: (arg: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived) => (r: Base) => Derived; (a: any): any; }, Symbol(foo7,Decl(subtypingWithCallSignatures2.ts,23,35),Decl(subtypingWithCallSignatures2.ts,25,88))
>r7arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U, Symbol(r7arg1,Decl(subtypingWithCallSignatures2.ts,115,3))
var r7a = [r7arg1, r7arg2];
>r7a : (<T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U)[], Symbol(r7a,Decl(subtypingWithCallSignatures2.ts,118,3))
>[r7arg1, r7arg2] : (<T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U)[]
>r7arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U, Symbol(r7arg1,Decl(subtypingWithCallSignatures2.ts,115,3))
>r7arg2 : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(r7arg2,Decl(subtypingWithCallSignatures2.ts,116,3))
var r7b = [r7arg2, r7arg1];
>r7b : (<T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U)[], Symbol(r7b,Decl(subtypingWithCallSignatures2.ts,119,3))
>[r7arg2, r7arg1] : (<T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U)[]
>r7arg2 : (x: (arg: Base) => Derived) => (r: Base) => Derived, Symbol(r7arg2,Decl(subtypingWithCallSignatures2.ts,116,3))
>r7arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U, Symbol(r7arg1,Decl(subtypingWithCallSignatures2.ts,115,3))
var r8arg1 = <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => <U>null;
>r8arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(r8arg1,Decl(subtypingWithCallSignatures2.ts,121,3))
><T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => <U>null : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,121,14))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,121,29))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>x : (arg: T) => U, Symbol(x,Decl(subtypingWithCallSignatures2.ts,121,49))
>arg : T, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,121,53))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,121,14))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,121,29))
>y : (arg2: T) => U, Symbol(y,Decl(subtypingWithCallSignatures2.ts,121,66))
>arg2 : T, Symbol(arg2,Decl(subtypingWithCallSignatures2.ts,121,71))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,121,14))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,121,29))
>(r: T) => <U>null : (r: T) => U
>r : T, Symbol(r,Decl(subtypingWithCallSignatures2.ts,121,90))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,121,14))
><U>null : U
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,121,29))
>null : null
var r8arg2 = (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => <Derived>null;
>r8arg2 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(r8arg2,Decl(subtypingWithCallSignatures2.ts,122,3))
>(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => <Derived>null : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived
>x : (arg: Base) => Derived, Symbol(x,Decl(subtypingWithCallSignatures2.ts,122,14))
>arg : Base, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,122,18))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>y : (arg2: Base) => Derived, Symbol(y,Decl(subtypingWithCallSignatures2.ts,122,40))
>arg2 : Base, Symbol(arg2,Decl(subtypingWithCallSignatures2.ts,122,45))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>(r: Base) => <Derived>null : (r: Base) => Derived
>r : Base, Symbol(r,Decl(subtypingWithCallSignatures2.ts,122,73))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
><Derived>null : Derived
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>null : null
var r8 = foo8(r8arg1); // any
>r8 : any, Symbol(r8,Decl(subtypingWithCallSignatures2.ts,123,3))
>foo8(r8arg1) : any
>foo8 : { (a: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; (a: any): any; }, Symbol(foo8,Decl(subtypingWithCallSignatures2.ts,26,35),Decl(subtypingWithCallSignatures2.ts,28,116))
>r8arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(r8arg1,Decl(subtypingWithCallSignatures2.ts,121,3))
var r8a = [r8arg1, r8arg2];
>r8a : (<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U)[], Symbol(r8a,Decl(subtypingWithCallSignatures2.ts,124,3))
>[r8arg1, r8arg2] : (<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U)[]
>r8arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(r8arg1,Decl(subtypingWithCallSignatures2.ts,121,3))
>r8arg2 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(r8arg2,Decl(subtypingWithCallSignatures2.ts,122,3))
var r8b = [r8arg2, r8arg1];
>r8b : (<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U)[], Symbol(r8b,Decl(subtypingWithCallSignatures2.ts,125,3))
>[r8arg2, r8arg1] : (<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U)[]
>r8arg2 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(r8arg2,Decl(subtypingWithCallSignatures2.ts,122,3))
>r8arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U, Symbol(r8arg1,Decl(subtypingWithCallSignatures2.ts,121,3))
var r9arg1 = <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => <U>null;
>r9arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(r9arg1,Decl(subtypingWithCallSignatures2.ts,127,3))
><T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => <U>null : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,127,14))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,127,29))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>x : (arg: T) => U, Symbol(x,Decl(subtypingWithCallSignatures2.ts,127,49))
>arg : T, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,127,53))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,127,14))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,127,29))
>y : (arg2: { foo: string; bing: number; }) => U, Symbol(y,Decl(subtypingWithCallSignatures2.ts,127,66))
>arg2 : { foo: string; bing: number; }, Symbol(arg2,Decl(subtypingWithCallSignatures2.ts,127,71))
>foo : string, Symbol(foo,Decl(subtypingWithCallSignatures2.ts,127,78))
>bing : number, Symbol(bing,Decl(subtypingWithCallSignatures2.ts,127,91))
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,127,29))
>(r: T) => <U>null : (r: T) => U
>r : T, Symbol(r,Decl(subtypingWithCallSignatures2.ts,127,118))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,127,14))
><U>null : U
>U : U, Symbol(U,Decl(subtypingWithCallSignatures2.ts,127,29))
>null : null
var r9arg2 = (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => <Derived>null;
>r9arg2 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(r9arg2,Decl(subtypingWithCallSignatures2.ts,128,3))
>(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => <Derived>null : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived
>x : (arg: Base) => Derived, Symbol(x,Decl(subtypingWithCallSignatures2.ts,128,14))
>arg : Base, Symbol(arg,Decl(subtypingWithCallSignatures2.ts,128,18))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>y : (arg2: Base) => Derived, Symbol(y,Decl(subtypingWithCallSignatures2.ts,128,40))
>arg2 : Base, Symbol(arg2,Decl(subtypingWithCallSignatures2.ts,128,45))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>(r: Base) => <Derived>null : (r: Base) => Derived
>r : Base, Symbol(r,Decl(subtypingWithCallSignatures2.ts,128,73))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
><Derived>null : Derived
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>null : null
var r9 = foo9(r9arg1); // any
>r9 : any, Symbol(r9,Decl(subtypingWithCallSignatures2.ts,129,3))
>foo9(r9arg1) : any
>foo9 : { (a: (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived): (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived; (a: any): any; }, Symbol(foo9,Decl(subtypingWithCallSignatures2.ts,29,35),Decl(subtypingWithCallSignatures2.ts,31,116))
>r9arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(r9arg1,Decl(subtypingWithCallSignatures2.ts,127,3))
var r9a = [r9arg1, r9arg2];
>r9a : (<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U)[], Symbol(r9a,Decl(subtypingWithCallSignatures2.ts,130,3))
>[r9arg1, r9arg2] : (<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U)[]
>r9arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(r9arg1,Decl(subtypingWithCallSignatures2.ts,127,3))
>r9arg2 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(r9arg2,Decl(subtypingWithCallSignatures2.ts,128,3))
var r9b = [r9arg2, r9arg1];
>r9b : (<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U)[], Symbol(r9b,Decl(subtypingWithCallSignatures2.ts,131,3))
>[r9arg2, r9arg1] : (<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U)[]
>r9arg2 : (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived, Symbol(r9arg2,Decl(subtypingWithCallSignatures2.ts,128,3))
>r9arg1 : <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number; }) => U) => (r: T) => U, Symbol(r9arg1,Decl(subtypingWithCallSignatures2.ts,127,3))
var r10arg1 = <T extends Derived>(...x: T[]) => x[0];
>r10arg1 : <T extends Derived>(...x: T[]) => T, Symbol(r10arg1,Decl(subtypingWithCallSignatures2.ts,133,3))
><T extends Derived>(...x: T[]) => x[0] : <T extends Derived>(...x: T[]) => T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,133,15))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>x : T[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,133,34))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,133,15))
>x[0] : T
>x : T[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,133,34))
>0 : number
var r10arg2 = (...x: Derived[]) => <Derived>null;
>r10arg2 : (...x: Derived[]) => Derived, Symbol(r10arg2,Decl(subtypingWithCallSignatures2.ts,134,3))
>(...x: Derived[]) => <Derived>null : (...x: Derived[]) => Derived
>x : Derived[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,134,15))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
><Derived>null : Derived
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>null : null
var r10 = foo10(r10arg1); // any
>r10 : any, Symbol(r10,Decl(subtypingWithCallSignatures2.ts,135,3))
>foo10(r10arg1) : any
>foo10 : { (a: (...x: Derived[]) => Derived): (...x: Derived[]) => Derived; (a: any): any; }, Symbol(foo10,Decl(subtypingWithCallSignatures2.ts,32,35),Decl(subtypingWithCallSignatures2.ts,34,66))
>r10arg1 : <T extends Derived>(...x: T[]) => T, Symbol(r10arg1,Decl(subtypingWithCallSignatures2.ts,133,3))
var r10a = [r10arg1, r10arg2];
>r10a : (<T extends Derived>(...x: T[]) => T)[], Symbol(r10a,Decl(subtypingWithCallSignatures2.ts,136,3))
>[r10arg1, r10arg2] : (<T extends Derived>(...x: T[]) => T)[]
>r10arg1 : <T extends Derived>(...x: T[]) => T, Symbol(r10arg1,Decl(subtypingWithCallSignatures2.ts,133,3))
>r10arg2 : (...x: Derived[]) => Derived, Symbol(r10arg2,Decl(subtypingWithCallSignatures2.ts,134,3))
var r10b = [r10arg2, r10arg1];
>r10b : (<T extends Derived>(...x: T[]) => T)[], Symbol(r10b,Decl(subtypingWithCallSignatures2.ts,137,3))
>[r10arg2, r10arg1] : (<T extends Derived>(...x: T[]) => T)[]
>r10arg2 : (...x: Derived[]) => Derived, Symbol(r10arg2,Decl(subtypingWithCallSignatures2.ts,134,3))
>r10arg1 : <T extends Derived>(...x: T[]) => T, Symbol(r10arg1,Decl(subtypingWithCallSignatures2.ts,133,3))
var r11arg1 = <T extends Base>(x: T, y: T) => x;
>r11arg1 : <T extends Base>(x: T, y: T) => T, Symbol(r11arg1,Decl(subtypingWithCallSignatures2.ts,139,3))
><T extends Base>(x: T, y: T) => x : <T extends Base>(x: T, y: T) => T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,139,15))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,139,31))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,139,15))
>y : T, Symbol(y,Decl(subtypingWithCallSignatures2.ts,139,36))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,139,15))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,139,31))
var r11arg2 = (x: { foo: string }, y: { foo: string; bar: string }) => <Base>null;
>r11arg2 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(r11arg2,Decl(subtypingWithCallSignatures2.ts,140,3))
>(x: { foo: string }, y: { foo: string; bar: string }) => <Base>null : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base
>x : { foo: string; }, Symbol(x,Decl(subtypingWithCallSignatures2.ts,140,15))
>foo : string, Symbol(foo,Decl(subtypingWithCallSignatures2.ts,140,19))
>y : { foo: string; bar: string; }, Symbol(y,Decl(subtypingWithCallSignatures2.ts,140,34))
>foo : string, Symbol(foo,Decl(subtypingWithCallSignatures2.ts,140,39))
>bar : string, Symbol(bar,Decl(subtypingWithCallSignatures2.ts,140,52))
><Base>null : Base
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>null : null
var r11 = foo11(r11arg1); // any
>r11 : any, Symbol(r11,Decl(subtypingWithCallSignatures2.ts,141,3))
>foo11(r11arg1) : any
>foo11 : { (a: (x: { foo: string; }, y: { foo: string; bar: string; }) => Base): (x: { foo: string; }, y: { foo: string; bar: string; }) => Base; (a: any): any; }, Symbol(foo11,Decl(subtypingWithCallSignatures2.ts,35,36),Decl(subtypingWithCallSignatures2.ts,37,99))
>r11arg1 : <T extends Base>(x: T, y: T) => T, Symbol(r11arg1,Decl(subtypingWithCallSignatures2.ts,139,3))
var r11a = [r11arg1, r11arg2];
>r11a : (<T extends Base>(x: T, y: T) => T)[], Symbol(r11a,Decl(subtypingWithCallSignatures2.ts,142,3))
>[r11arg1, r11arg2] : (<T extends Base>(x: T, y: T) => T)[]
>r11arg1 : <T extends Base>(x: T, y: T) => T, Symbol(r11arg1,Decl(subtypingWithCallSignatures2.ts,139,3))
>r11arg2 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(r11arg2,Decl(subtypingWithCallSignatures2.ts,140,3))
var r11b = [r11arg2, r11arg1];
>r11b : (<T extends Base>(x: T, y: T) => T)[], Symbol(r11b,Decl(subtypingWithCallSignatures2.ts,143,3))
>[r11arg2, r11arg1] : (<T extends Base>(x: T, y: T) => T)[]
>r11arg2 : (x: { foo: string; }, y: { foo: string; bar: string; }) => Base, Symbol(r11arg2,Decl(subtypingWithCallSignatures2.ts,140,3))
>r11arg1 : <T extends Base>(x: T, y: T) => T, Symbol(r11arg1,Decl(subtypingWithCallSignatures2.ts,139,3))
var r12arg1 = <T extends Array<Base>>(x: Array<Base>, y: T) => <Array<Derived>>null;
>r12arg1 : <T extends Base[]>(x: Base[], y: T) => Derived[], Symbol(r12arg1,Decl(subtypingWithCallSignatures2.ts,145,3))
><T extends Array<Base>>(x: Array<Base>, y: T) => <Array<Derived>>null : <T extends Base[]>(x: Base[], y: T) => Derived[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,145,15))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>x : Base[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,145,38))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>y : T, Symbol(y,Decl(subtypingWithCallSignatures2.ts,145,53))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,145,15))
><Array<Derived>>null : Derived[]
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>null : null
var r12arg2 = (x: Array<Base>, y: Array<Derived2>) => <Array<Derived>>null;
>r12arg2 : (x: Base[], y: Derived2[]) => Derived[], Symbol(r12arg2,Decl(subtypingWithCallSignatures2.ts,146,3))
>(x: Array<Base>, y: Array<Derived2>) => <Array<Derived>>null : (x: Base[], y: Derived2[]) => Derived[]
>x : Base[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,146,15))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>y : Derived2[], Symbol(y,Decl(subtypingWithCallSignatures2.ts,146,30))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived2 : Derived2, Symbol(Derived2,Decl(subtypingWithCallSignatures2.ts,3,43))
><Array<Derived>>null : Derived[]
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>null : null
var r12 = foo12(r12arg1); // any
>r12 : (x: Base[], y: Derived2[]) => Derived[], Symbol(r12,Decl(subtypingWithCallSignatures2.ts,147,3))
>foo12(r12arg1) : (x: Base[], y: Derived2[]) => Derived[]
>foo12 : { (a: (x: Base[], y: Derived2[]) => Derived[]): (x: Base[], y: Derived2[]) => Derived[]; (a: any): any; }, Symbol(foo12,Decl(subtypingWithCallSignatures2.ts,38,36),Decl(subtypingWithCallSignatures2.ts,40,92))
>r12arg1 : <T extends Base[]>(x: Base[], y: T) => Derived[], Symbol(r12arg1,Decl(subtypingWithCallSignatures2.ts,145,3))
var r12a = [r12arg1, r12arg2];
>r12a : (<T extends Base[]>(x: Base[], y: T) => Derived[])[], Symbol(r12a,Decl(subtypingWithCallSignatures2.ts,148,3))
>[r12arg1, r12arg2] : (<T extends Base[]>(x: Base[], y: T) => Derived[])[]
>r12arg1 : <T extends Base[]>(x: Base[], y: T) => Derived[], Symbol(r12arg1,Decl(subtypingWithCallSignatures2.ts,145,3))
>r12arg2 : (x: Base[], y: Derived2[]) => Derived[], Symbol(r12arg2,Decl(subtypingWithCallSignatures2.ts,146,3))
var r12b = [r12arg2, r12arg1];
>r12b : (<T extends Base[]>(x: Base[], y: T) => Derived[])[], Symbol(r12b,Decl(subtypingWithCallSignatures2.ts,149,3))
>[r12arg2, r12arg1] : (<T extends Base[]>(x: Base[], y: T) => Derived[])[]
>r12arg2 : (x: Base[], y: Derived2[]) => Derived[], Symbol(r12arg2,Decl(subtypingWithCallSignatures2.ts,146,3))
>r12arg1 : <T extends Base[]>(x: Base[], y: T) => Derived[], Symbol(r12arg1,Decl(subtypingWithCallSignatures2.ts,145,3))
var r13arg1 = <T extends Array<Derived>>(x: Array<Base>, y: T) => y;
>r13arg1 : <T extends Derived[]>(x: Base[], y: T) => T, Symbol(r13arg1,Decl(subtypingWithCallSignatures2.ts,151,3))
><T extends Array<Derived>>(x: Array<Base>, y: T) => y : <T extends Derived[]>(x: Base[], y: T) => T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,151,15))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>x : Base[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,151,41))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>y : T, Symbol(y,Decl(subtypingWithCallSignatures2.ts,151,56))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,151,15))
>y : T, Symbol(y,Decl(subtypingWithCallSignatures2.ts,151,56))
var r13arg2 = (x: Array<Base>, y: Array<Derived>) => <Array<Derived>>null;
>r13arg2 : (x: Base[], y: Derived[]) => Derived[], Symbol(r13arg2,Decl(subtypingWithCallSignatures2.ts,152,3))
>(x: Array<Base>, y: Array<Derived>) => <Array<Derived>>null : (x: Base[], y: Derived[]) => Derived[]
>x : Base[], Symbol(x,Decl(subtypingWithCallSignatures2.ts,152,15))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>y : Derived[], Symbol(y,Decl(subtypingWithCallSignatures2.ts,152,30))
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
><Array<Derived>>null : Derived[]
>Array : T[], Symbol(Array,Decl(lib.d.ts,1000,23),Decl(lib.d.ts,1171,11))
>Derived : Derived, Symbol(Derived,Decl(subtypingWithCallSignatures2.ts,2,27))
>null : null
var r13 = foo13(r13arg1); // any
>r13 : any, Symbol(r13,Decl(subtypingWithCallSignatures2.ts,153,3))
>foo13(r13arg1) : any
>foo13 : { (a: (x: Base[], y: Derived[]) => Derived[]): (x: Base[], y: Derived[]) => Derived[]; (a: any): any; }, Symbol(foo13,Decl(subtypingWithCallSignatures2.ts,41,36),Decl(subtypingWithCallSignatures2.ts,43,91))
>r13arg1 : <T extends Derived[]>(x: Base[], y: T) => T, Symbol(r13arg1,Decl(subtypingWithCallSignatures2.ts,151,3))
var r13a = [r13arg1, r13arg2];
>r13a : (<T extends Derived[]>(x: Base[], y: T) => T)[], Symbol(r13a,Decl(subtypingWithCallSignatures2.ts,154,3))
>[r13arg1, r13arg2] : (<T extends Derived[]>(x: Base[], y: T) => T)[]
>r13arg1 : <T extends Derived[]>(x: Base[], y: T) => T, Symbol(r13arg1,Decl(subtypingWithCallSignatures2.ts,151,3))
>r13arg2 : (x: Base[], y: Derived[]) => Derived[], Symbol(r13arg2,Decl(subtypingWithCallSignatures2.ts,152,3))
var r13b = [r13arg2, r13arg1];
>r13b : (<T extends Derived[]>(x: Base[], y: T) => T)[], Symbol(r13b,Decl(subtypingWithCallSignatures2.ts,155,3))
>[r13arg2, r13arg1] : (<T extends Derived[]>(x: Base[], y: T) => T)[]
>r13arg2 : (x: Base[], y: Derived[]) => Derived[], Symbol(r13arg2,Decl(subtypingWithCallSignatures2.ts,152,3))
>r13arg1 : <T extends Derived[]>(x: Base[], y: T) => T, Symbol(r13arg1,Decl(subtypingWithCallSignatures2.ts,151,3))
var r14arg1 = <T>(x: { a: T; b: T }) => x.a;
>r14arg1 : <T>(x: { a: T; b: T; }) => T, Symbol(r14arg1,Decl(subtypingWithCallSignatures2.ts,157,3))
><T>(x: { a: T; b: T }) => x.a : <T>(x: { a: T; b: T; }) => T
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,157,15))
>x : { a: T; b: T; }, Symbol(x,Decl(subtypingWithCallSignatures2.ts,157,18))
>a : T, Symbol(a,Decl(subtypingWithCallSignatures2.ts,157,22))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,157,15))
>b : T, Symbol(b,Decl(subtypingWithCallSignatures2.ts,157,28))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,157,15))
>x.a : T, Symbol(a,Decl(subtypingWithCallSignatures2.ts,157,22))
>x : { a: T; b: T; }, Symbol(x,Decl(subtypingWithCallSignatures2.ts,157,18))
>a : T, Symbol(a,Decl(subtypingWithCallSignatures2.ts,157,22))
var r14arg2 = (x: { a: string; b: number }) => <Object>null;
>r14arg2 : (x: { a: string; b: number; }) => Object, Symbol(r14arg2,Decl(subtypingWithCallSignatures2.ts,158,3))
>(x: { a: string; b: number }) => <Object>null : (x: { a: string; b: number; }) => Object
>x : { a: string; b: number; }, Symbol(x,Decl(subtypingWithCallSignatures2.ts,158,15))
>a : string, Symbol(a,Decl(subtypingWithCallSignatures2.ts,158,19))
>b : number, Symbol(b,Decl(subtypingWithCallSignatures2.ts,158,30))
><Object>null : Object
>Object : Object, Symbol(Object,Decl(lib.d.ts,92,1),Decl(lib.d.ts,223,11))
>null : null
var r14 = foo14(r14arg1); // any
>r14 : any, Symbol(r14,Decl(subtypingWithCallSignatures2.ts,159,3))
>foo14(r14arg1) : any
>foo14 : { (a: (x: { a: string; b: number; }) => Object): (x: { a: string; b: number; }) => Object; (a: any): any; }, Symbol(foo14,Decl(subtypingWithCallSignatures2.ts,44,36),Decl(subtypingWithCallSignatures2.ts,46,77))
>r14arg1 : <T>(x: { a: T; b: T; }) => T, Symbol(r14arg1,Decl(subtypingWithCallSignatures2.ts,157,3))
var r14a = [r14arg1, r14arg2];
>r14a : (<T>(x: { a: T; b: T; }) => T)[], Symbol(r14a,Decl(subtypingWithCallSignatures2.ts,160,3))
>[r14arg1, r14arg2] : (<T>(x: { a: T; b: T; }) => T)[]
>r14arg1 : <T>(x: { a: T; b: T; }) => T, Symbol(r14arg1,Decl(subtypingWithCallSignatures2.ts,157,3))
>r14arg2 : (x: { a: string; b: number; }) => Object, Symbol(r14arg2,Decl(subtypingWithCallSignatures2.ts,158,3))
var r14b = [r14arg2, r14arg1];
>r14b : (<T>(x: { a: T; b: T; }) => T)[], Symbol(r14b,Decl(subtypingWithCallSignatures2.ts,161,3))
>[r14arg2, r14arg1] : (<T>(x: { a: T; b: T; }) => T)[]
>r14arg2 : (x: { a: string; b: number; }) => Object, Symbol(r14arg2,Decl(subtypingWithCallSignatures2.ts,158,3))
>r14arg1 : <T>(x: { a: T; b: T; }) => T, Symbol(r14arg1,Decl(subtypingWithCallSignatures2.ts,157,3))
var r15arg1 = <T>(x: T) => <T[]>null
>r15arg1 : <T>(x: T) => T[], Symbol(r15arg1,Decl(subtypingWithCallSignatures2.ts,163,3))
><T>(x: T) => <T[]>null : <T>(x: T) => T[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,163,15))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,163,18))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,163,15))
><T[]>null : T[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,163,15))
>null : null
var r15 = foo15(r15arg1); // any
>r15 : any, Symbol(r15,Decl(subtypingWithCallSignatures2.ts,164,3))
>foo15(r15arg1) : any
>foo15 : { (a: { (x: number): number[]; (x: string): string[]; }): { (x: number): number[]; (x: string): string[]; }; (a: any): any; }, Symbol(foo15,Decl(subtypingWithCallSignatures2.ts,47,36),Decl(subtypingWithCallSignatures2.ts,52,13))
>r15arg1 : <T>(x: T) => T[], Symbol(r15arg1,Decl(subtypingWithCallSignatures2.ts,163,3))
var r16arg1 = <T extends Base>(x: T) => [1];
>r16arg1 : <T extends Base>(x: T) => number[], Symbol(r16arg1,Decl(subtypingWithCallSignatures2.ts,165,3))
><T extends Base>(x: T) => [1] : <T extends Base>(x: T) => number[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,165,15))
>Base : Base, Symbol(Base,Decl(subtypingWithCallSignatures2.ts,0,0))
>x : T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,165,31))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,165,15))
>[1] : number[]
>1 : number
var r16 = foo16(r16arg1);
>r16 : { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }, Symbol(r16,Decl(subtypingWithCallSignatures2.ts,166,3))
>foo16(r16arg1) : { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }
>foo16 : { (a: { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }): { <T extends Derived>(x: T): number[]; <U extends Base>(x: U): number[]; }; (a: any): any; }, Symbol(foo16,Decl(subtypingWithCallSignatures2.ts,53,36),Decl(subtypingWithCallSignatures2.ts,58,13))
>r16arg1 : <T extends Base>(x: T) => number[], Symbol(r16arg1,Decl(subtypingWithCallSignatures2.ts,165,3))
var r17arg1 = <T>(x: (a: T) => T) => <T[]>null;
>r17arg1 : <T>(x: (a: T) => T) => T[], Symbol(r17arg1,Decl(subtypingWithCallSignatures2.ts,167,3))
><T>(x: (a: T) => T) => <T[]>null : <T>(x: (a: T) => T) => T[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,167,15))
>x : (a: T) => T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,167,18))
>a : T, Symbol(a,Decl(subtypingWithCallSignatures2.ts,167,22))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,167,15))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,167,15))
><T[]>null : T[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,167,15))
>null : null
var r17 = foo17(r17arg1); // any
>r17 : any, Symbol(r17,Decl(subtypingWithCallSignatures2.ts,168,3))
>foo17(r17arg1) : any
>foo17 : { (a: { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }): { (x: (a: number) => number): number[]; (x: (a: string) => string): string[]; }; (a: any): any; }, Symbol(foo17,Decl(subtypingWithCallSignatures2.ts,59,36),Decl(subtypingWithCallSignatures2.ts,64,13))
>r17arg1 : <T>(x: (a: T) => T) => T[], Symbol(r17arg1,Decl(subtypingWithCallSignatures2.ts,167,3))
var r18arg1 = <T>(x: (a: T) => T) => <T[]>null;
>r18arg1 : <T>(x: (a: T) => T) => T[], Symbol(r18arg1,Decl(subtypingWithCallSignatures2.ts,169,3))
><T>(x: (a: T) => T) => <T[]>null : <T>(x: (a: T) => T) => T[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,169,15))
>x : (a: T) => T, Symbol(x,Decl(subtypingWithCallSignatures2.ts,169,18))
>a : T, Symbol(a,Decl(subtypingWithCallSignatures2.ts,169,22))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,169,15))
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,169,15))
><T[]>null : T[]
>T : T, Symbol(T,Decl(subtypingWithCallSignatures2.ts,169,15))
>null : null
var r18 = foo18(r18arg1);
>r18 : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }, Symbol(r18,Decl(subtypingWithCallSignatures2.ts,170,3))
>foo18(r18arg1) : { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }
>foo18 : { (a: { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }): { (x: { (a: number): number; (a: string): string; }): any[]; (x: { (a: boolean): boolean; (a: Date): Date; }): any[]; }; (a: any): any; }, Symbol(foo18,Decl(subtypingWithCallSignatures2.ts,65,36),Decl(subtypingWithCallSignatures2.ts,76,13))
>r18arg1 : <T>(x: (a: T) => T) => T[], Symbol(r18arg1,Decl(subtypingWithCallSignatures2.ts,169,3))