552 lines
30 KiB
Text
552 lines
30 KiB
Text
=== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures4.ts ===
|
|
// checking subtype relations for function types as it relates to contextual signature instantiation
|
|
|
|
class Base { foo: string; }
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>foo : Symbol(foo, Decl(subtypingWithCallSignatures4.ts, 2, 12))
|
|
|
|
class Derived extends Base { bar: string; }
|
|
>Derived : Symbol(Derived, Decl(subtypingWithCallSignatures4.ts, 2, 27))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>bar : Symbol(bar, Decl(subtypingWithCallSignatures4.ts, 3, 28))
|
|
|
|
class Derived2 extends Derived { baz: string; }
|
|
>Derived2 : Symbol(Derived2, Decl(subtypingWithCallSignatures4.ts, 3, 43))
|
|
>Derived : Symbol(Derived, Decl(subtypingWithCallSignatures4.ts, 2, 27))
|
|
>baz : Symbol(baz, Decl(subtypingWithCallSignatures4.ts, 4, 32))
|
|
|
|
class OtherDerived extends Base { bing: string; }
|
|
>OtherDerived : Symbol(OtherDerived, Decl(subtypingWithCallSignatures4.ts, 4, 47))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>bing : Symbol(bing, Decl(subtypingWithCallSignatures4.ts, 5, 33))
|
|
|
|
declare function foo1(a: <T>(x: T) => T[]);
|
|
>foo1 : Symbol(foo1, Decl(subtypingWithCallSignatures4.ts, 5, 49), Decl(subtypingWithCallSignatures4.ts, 7, 43))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 7, 22))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 7, 26))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 7, 29))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 7, 26))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 7, 26))
|
|
|
|
declare function foo1(a: any): any;
|
|
>foo1 : Symbol(foo1, Decl(subtypingWithCallSignatures4.ts, 5, 49), Decl(subtypingWithCallSignatures4.ts, 7, 43))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 8, 22))
|
|
|
|
declare function foo2(a2: <T>(x: T) => string[]);
|
|
>foo2 : Symbol(foo2, Decl(subtypingWithCallSignatures4.ts, 8, 35), Decl(subtypingWithCallSignatures4.ts, 10, 49))
|
|
>a2 : Symbol(a2, Decl(subtypingWithCallSignatures4.ts, 10, 22))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 10, 27))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 10, 30))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 10, 27))
|
|
|
|
declare function foo2(a: any): any;
|
|
>foo2 : Symbol(foo2, Decl(subtypingWithCallSignatures4.ts, 8, 35), Decl(subtypingWithCallSignatures4.ts, 10, 49))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 11, 22))
|
|
|
|
declare function foo3(a3: <T>(x: T) => void);
|
|
>foo3 : Symbol(foo3, Decl(subtypingWithCallSignatures4.ts, 11, 35), Decl(subtypingWithCallSignatures4.ts, 13, 45))
|
|
>a3 : Symbol(a3, Decl(subtypingWithCallSignatures4.ts, 13, 22))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 13, 27))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 13, 30))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 13, 27))
|
|
|
|
declare function foo3(a: any): any;
|
|
>foo3 : Symbol(foo3, Decl(subtypingWithCallSignatures4.ts, 11, 35), Decl(subtypingWithCallSignatures4.ts, 13, 45))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 14, 22))
|
|
|
|
declare function foo4(a4: <T, U>(x: T, y: U) => string);
|
|
>foo4 : Symbol(foo4, Decl(subtypingWithCallSignatures4.ts, 14, 35), Decl(subtypingWithCallSignatures4.ts, 16, 56))
|
|
>a4 : Symbol(a4, Decl(subtypingWithCallSignatures4.ts, 16, 22))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 16, 27))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 16, 29))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 16, 33))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 16, 27))
|
|
>y : Symbol(y, Decl(subtypingWithCallSignatures4.ts, 16, 38))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 16, 29))
|
|
|
|
declare function foo4(a: any): any;
|
|
>foo4 : Symbol(foo4, Decl(subtypingWithCallSignatures4.ts, 14, 35), Decl(subtypingWithCallSignatures4.ts, 16, 56))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 17, 22))
|
|
|
|
declare function foo5(a5: <T, U>(x: (arg: T) => U) => T);
|
|
>foo5 : Symbol(foo5, Decl(subtypingWithCallSignatures4.ts, 17, 35), Decl(subtypingWithCallSignatures4.ts, 19, 57))
|
|
>a5 : Symbol(a5, Decl(subtypingWithCallSignatures4.ts, 19, 22))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 19, 27))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 19, 29))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 19, 33))
|
|
>arg : Symbol(arg, Decl(subtypingWithCallSignatures4.ts, 19, 37))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 19, 27))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 19, 29))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 19, 27))
|
|
|
|
declare function foo5(a: any): any;
|
|
>foo5 : Symbol(foo5, Decl(subtypingWithCallSignatures4.ts, 17, 35), Decl(subtypingWithCallSignatures4.ts, 19, 57))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 20, 22))
|
|
|
|
declare function foo6(a6: <T extends Base>(x: (arg: T) => Derived) => T);
|
|
>foo6 : Symbol(foo6, Decl(subtypingWithCallSignatures4.ts, 20, 35), Decl(subtypingWithCallSignatures4.ts, 22, 73))
|
|
>a6 : Symbol(a6, Decl(subtypingWithCallSignatures4.ts, 22, 22))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 22, 27))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 22, 43))
|
|
>arg : Symbol(arg, Decl(subtypingWithCallSignatures4.ts, 22, 47))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 22, 27))
|
|
>Derived : Symbol(Derived, Decl(subtypingWithCallSignatures4.ts, 2, 27))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 22, 27))
|
|
|
|
declare function foo6(a: any): any;
|
|
>foo6 : Symbol(foo6, Decl(subtypingWithCallSignatures4.ts, 20, 35), Decl(subtypingWithCallSignatures4.ts, 22, 73))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 23, 22))
|
|
|
|
declare function foo11(a11: <T>(x: { foo: T }, y: { foo: T; bar: T }) => Base);
|
|
>foo11 : Symbol(foo11, Decl(subtypingWithCallSignatures4.ts, 23, 35), Decl(subtypingWithCallSignatures4.ts, 25, 79))
|
|
>a11 : Symbol(a11, Decl(subtypingWithCallSignatures4.ts, 25, 23))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 25, 29))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 25, 32))
|
|
>foo : Symbol(foo, Decl(subtypingWithCallSignatures4.ts, 25, 36))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 25, 29))
|
|
>y : Symbol(y, Decl(subtypingWithCallSignatures4.ts, 25, 46))
|
|
>foo : Symbol(foo, Decl(subtypingWithCallSignatures4.ts, 25, 51))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 25, 29))
|
|
>bar : Symbol(bar, Decl(subtypingWithCallSignatures4.ts, 25, 59))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 25, 29))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
|
|
declare function foo11(a: any): any;
|
|
>foo11 : Symbol(foo11, Decl(subtypingWithCallSignatures4.ts, 23, 35), Decl(subtypingWithCallSignatures4.ts, 25, 79))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 26, 23))
|
|
|
|
declare function foo15(a15: <T>(x: { a: T; b: T }) => T[]);
|
|
>foo15 : Symbol(foo15, Decl(subtypingWithCallSignatures4.ts, 26, 36), Decl(subtypingWithCallSignatures4.ts, 28, 59))
|
|
>a15 : Symbol(a15, Decl(subtypingWithCallSignatures4.ts, 28, 23))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 28, 29))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 28, 32))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 28, 36))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 28, 29))
|
|
>b : Symbol(b, Decl(subtypingWithCallSignatures4.ts, 28, 42))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 28, 29))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 28, 29))
|
|
|
|
declare function foo15(a: any): any;
|
|
>foo15 : Symbol(foo15, Decl(subtypingWithCallSignatures4.ts, 26, 36), Decl(subtypingWithCallSignatures4.ts, 28, 59))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 29, 23))
|
|
|
|
declare function foo16(a16: <T extends Base>(x: { a: T; b: T }) => T[]);
|
|
>foo16 : Symbol(foo16, Decl(subtypingWithCallSignatures4.ts, 29, 36), Decl(subtypingWithCallSignatures4.ts, 31, 72))
|
|
>a16 : Symbol(a16, Decl(subtypingWithCallSignatures4.ts, 31, 23))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 31, 29))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 31, 45))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 31, 49))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 31, 29))
|
|
>b : Symbol(b, Decl(subtypingWithCallSignatures4.ts, 31, 55))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 31, 29))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 31, 29))
|
|
|
|
declare function foo16(a: any): any;
|
|
>foo16 : Symbol(foo16, Decl(subtypingWithCallSignatures4.ts, 29, 36), Decl(subtypingWithCallSignatures4.ts, 31, 72))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 32, 23))
|
|
|
|
declare function foo17(a17: {
|
|
>foo17 : Symbol(foo17, Decl(subtypingWithCallSignatures4.ts, 32, 36), Decl(subtypingWithCallSignatures4.ts, 37, 3))
|
|
>a17 : Symbol(a17, Decl(subtypingWithCallSignatures4.ts, 34, 23))
|
|
|
|
<T extends Derived>(x: (a: T) => T): T[];
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 35, 5))
|
|
>Derived : Symbol(Derived, Decl(subtypingWithCallSignatures4.ts, 2, 27))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 35, 24))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 35, 28))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 35, 5))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 35, 5))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 35, 5))
|
|
|
|
<T extends Base>(x: (a: T) => T): T[];
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 36, 5))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 36, 21))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 36, 25))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 36, 5))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 36, 5))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 36, 5))
|
|
|
|
});
|
|
declare function foo17(a: any): any;
|
|
>foo17 : Symbol(foo17, Decl(subtypingWithCallSignatures4.ts, 32, 36), Decl(subtypingWithCallSignatures4.ts, 37, 3))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 38, 23))
|
|
|
|
declare function foo18(a18: {
|
|
>foo18 : Symbol(foo18, Decl(subtypingWithCallSignatures4.ts, 38, 36), Decl(subtypingWithCallSignatures4.ts, 49, 3))
|
|
>a18 : Symbol(a18, Decl(subtypingWithCallSignatures4.ts, 40, 23))
|
|
|
|
(x: {
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 41, 5))
|
|
|
|
<T extends Derived>(a: T): T;
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 42, 9))
|
|
>Derived : Symbol(Derived, Decl(subtypingWithCallSignatures4.ts, 2, 27))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 42, 28))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 42, 9))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 42, 9))
|
|
|
|
<T extends Base>(a: T): T;
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 43, 9))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 43, 25))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 43, 9))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 43, 9))
|
|
|
|
}): any[];
|
|
(x: {
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 45, 5))
|
|
|
|
<T extends Derived2>(a: T): T;
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 46, 9))
|
|
>Derived2 : Symbol(Derived2, Decl(subtypingWithCallSignatures4.ts, 3, 43))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 46, 29))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 46, 9))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 46, 9))
|
|
|
|
<T extends Base>(a: T): T;
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 47, 9))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 47, 25))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 47, 9))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 47, 9))
|
|
|
|
}): any[];
|
|
});
|
|
declare function foo18(a: any): any;
|
|
>foo18 : Symbol(foo18, Decl(subtypingWithCallSignatures4.ts, 38, 36), Decl(subtypingWithCallSignatures4.ts, 49, 3))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 50, 23))
|
|
|
|
var r1arg = <T>(x: T) => <T[]>null;
|
|
>r1arg : Symbol(r1arg, Decl(subtypingWithCallSignatures4.ts, 52, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 52, 13))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 52, 16))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 52, 13))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 52, 13))
|
|
|
|
var r1arg2 = <T>(x: T) => <T[]>null;
|
|
>r1arg2 : Symbol(r1arg2, Decl(subtypingWithCallSignatures4.ts, 53, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 53, 14))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 53, 17))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 53, 14))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 53, 14))
|
|
|
|
var r1 = foo1(r1arg);
|
|
>r1 : Symbol(r1, Decl(subtypingWithCallSignatures4.ts, 54, 3))
|
|
>foo1 : Symbol(foo1, Decl(subtypingWithCallSignatures4.ts, 5, 49), Decl(subtypingWithCallSignatures4.ts, 7, 43))
|
|
>r1arg : Symbol(r1arg, Decl(subtypingWithCallSignatures4.ts, 52, 3))
|
|
|
|
var r1a = [r1arg, r1arg2];
|
|
>r1a : Symbol(r1a, Decl(subtypingWithCallSignatures4.ts, 55, 3))
|
|
>r1arg : Symbol(r1arg, Decl(subtypingWithCallSignatures4.ts, 52, 3))
|
|
>r1arg2 : Symbol(r1arg2, Decl(subtypingWithCallSignatures4.ts, 53, 3))
|
|
|
|
var r1b = [r1arg2, r1arg];
|
|
>r1b : Symbol(r1b, Decl(subtypingWithCallSignatures4.ts, 56, 3))
|
|
>r1arg2 : Symbol(r1arg2, Decl(subtypingWithCallSignatures4.ts, 53, 3))
|
|
>r1arg : Symbol(r1arg, Decl(subtypingWithCallSignatures4.ts, 52, 3))
|
|
|
|
var r2arg = <T>(x: T) => [''];
|
|
>r2arg : Symbol(r2arg, Decl(subtypingWithCallSignatures4.ts, 58, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 58, 13))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 58, 16))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 58, 13))
|
|
|
|
var r2arg2 = <T>(x: T) => [''];
|
|
>r2arg2 : Symbol(r2arg2, Decl(subtypingWithCallSignatures4.ts, 59, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 59, 14))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 59, 17))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 59, 14))
|
|
|
|
var r2 = foo2(r2arg);
|
|
>r2 : Symbol(r2, Decl(subtypingWithCallSignatures4.ts, 60, 3))
|
|
>foo2 : Symbol(foo2, Decl(subtypingWithCallSignatures4.ts, 8, 35), Decl(subtypingWithCallSignatures4.ts, 10, 49))
|
|
>r2arg : Symbol(r2arg, Decl(subtypingWithCallSignatures4.ts, 58, 3))
|
|
|
|
var r2a = [r2arg, r2arg2];
|
|
>r2a : Symbol(r2a, Decl(subtypingWithCallSignatures4.ts, 61, 3))
|
|
>r2arg : Symbol(r2arg, Decl(subtypingWithCallSignatures4.ts, 58, 3))
|
|
>r2arg2 : Symbol(r2arg2, Decl(subtypingWithCallSignatures4.ts, 59, 3))
|
|
|
|
var r2b = [r2arg2, r2arg];
|
|
>r2b : Symbol(r2b, Decl(subtypingWithCallSignatures4.ts, 62, 3))
|
|
>r2arg2 : Symbol(r2arg2, Decl(subtypingWithCallSignatures4.ts, 59, 3))
|
|
>r2arg : Symbol(r2arg, Decl(subtypingWithCallSignatures4.ts, 58, 3))
|
|
|
|
var r3arg = <T>(x: T) => <T>null;
|
|
>r3arg : Symbol(r3arg, Decl(subtypingWithCallSignatures4.ts, 64, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 64, 13))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 64, 16))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 64, 13))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 64, 13))
|
|
|
|
var r3arg2 = <T>(x: T) => { };
|
|
>r3arg2 : Symbol(r3arg2, Decl(subtypingWithCallSignatures4.ts, 65, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 65, 14))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 65, 17))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 65, 14))
|
|
|
|
var r3 = foo3(r3arg);
|
|
>r3 : Symbol(r3, Decl(subtypingWithCallSignatures4.ts, 66, 3))
|
|
>foo3 : Symbol(foo3, Decl(subtypingWithCallSignatures4.ts, 11, 35), Decl(subtypingWithCallSignatures4.ts, 13, 45))
|
|
>r3arg : Symbol(r3arg, Decl(subtypingWithCallSignatures4.ts, 64, 3))
|
|
|
|
var r3a = [r3arg, r3arg2];
|
|
>r3a : Symbol(r3a, Decl(subtypingWithCallSignatures4.ts, 67, 3))
|
|
>r3arg : Symbol(r3arg, Decl(subtypingWithCallSignatures4.ts, 64, 3))
|
|
>r3arg2 : Symbol(r3arg2, Decl(subtypingWithCallSignatures4.ts, 65, 3))
|
|
|
|
var r3b = [r3arg2, r3arg];
|
|
>r3b : Symbol(r3b, Decl(subtypingWithCallSignatures4.ts, 68, 3))
|
|
>r3arg2 : Symbol(r3arg2, Decl(subtypingWithCallSignatures4.ts, 65, 3))
|
|
>r3arg : Symbol(r3arg, Decl(subtypingWithCallSignatures4.ts, 64, 3))
|
|
|
|
var r4arg = <T, U>(x: T, y: U) => '';
|
|
>r4arg : Symbol(r4arg, Decl(subtypingWithCallSignatures4.ts, 70, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 70, 13))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 70, 15))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 70, 19))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 70, 13))
|
|
>y : Symbol(y, Decl(subtypingWithCallSignatures4.ts, 70, 24))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 70, 15))
|
|
|
|
var r4arg2 = <T, U>(x: T, y: U) => '';
|
|
>r4arg2 : Symbol(r4arg2, Decl(subtypingWithCallSignatures4.ts, 71, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 71, 14))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 71, 16))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 71, 20))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 71, 14))
|
|
>y : Symbol(y, Decl(subtypingWithCallSignatures4.ts, 71, 25))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 71, 16))
|
|
|
|
var r4 = foo4(r4arg);
|
|
>r4 : Symbol(r4, Decl(subtypingWithCallSignatures4.ts, 72, 3))
|
|
>foo4 : Symbol(foo4, Decl(subtypingWithCallSignatures4.ts, 14, 35), Decl(subtypingWithCallSignatures4.ts, 16, 56))
|
|
>r4arg : Symbol(r4arg, Decl(subtypingWithCallSignatures4.ts, 70, 3))
|
|
|
|
var r4a = [r4arg, r4arg2];
|
|
>r4a : Symbol(r4a, Decl(subtypingWithCallSignatures4.ts, 73, 3))
|
|
>r4arg : Symbol(r4arg, Decl(subtypingWithCallSignatures4.ts, 70, 3))
|
|
>r4arg2 : Symbol(r4arg2, Decl(subtypingWithCallSignatures4.ts, 71, 3))
|
|
|
|
var r4b = [r4arg2, r4arg];
|
|
>r4b : Symbol(r4b, Decl(subtypingWithCallSignatures4.ts, 74, 3))
|
|
>r4arg2 : Symbol(r4arg2, Decl(subtypingWithCallSignatures4.ts, 71, 3))
|
|
>r4arg : Symbol(r4arg, Decl(subtypingWithCallSignatures4.ts, 70, 3))
|
|
|
|
var r5arg = <T, U>(x: (arg: T) => U) => <T>null;
|
|
>r5arg : Symbol(r5arg, Decl(subtypingWithCallSignatures4.ts, 76, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 76, 13))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 76, 15))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 76, 19))
|
|
>arg : Symbol(arg, Decl(subtypingWithCallSignatures4.ts, 76, 23))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 76, 13))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 76, 15))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 76, 13))
|
|
|
|
var r5arg2 = <T, U>(x: (arg: T) => U) => <T>null;
|
|
>r5arg2 : Symbol(r5arg2, Decl(subtypingWithCallSignatures4.ts, 77, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 77, 14))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 77, 16))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 77, 20))
|
|
>arg : Symbol(arg, Decl(subtypingWithCallSignatures4.ts, 77, 24))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 77, 14))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 77, 16))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 77, 14))
|
|
|
|
var r5 = foo5(r5arg);
|
|
>r5 : Symbol(r5, Decl(subtypingWithCallSignatures4.ts, 78, 3))
|
|
>foo5 : Symbol(foo5, Decl(subtypingWithCallSignatures4.ts, 17, 35), Decl(subtypingWithCallSignatures4.ts, 19, 57))
|
|
>r5arg : Symbol(r5arg, Decl(subtypingWithCallSignatures4.ts, 76, 3))
|
|
|
|
var r5a = [r5arg, r5arg2];
|
|
>r5a : Symbol(r5a, Decl(subtypingWithCallSignatures4.ts, 79, 3))
|
|
>r5arg : Symbol(r5arg, Decl(subtypingWithCallSignatures4.ts, 76, 3))
|
|
>r5arg2 : Symbol(r5arg2, Decl(subtypingWithCallSignatures4.ts, 77, 3))
|
|
|
|
var r5b = [r5arg2, r5arg];
|
|
>r5b : Symbol(r5b, Decl(subtypingWithCallSignatures4.ts, 80, 3))
|
|
>r5arg2 : Symbol(r5arg2, Decl(subtypingWithCallSignatures4.ts, 77, 3))
|
|
>r5arg : Symbol(r5arg, Decl(subtypingWithCallSignatures4.ts, 76, 3))
|
|
|
|
var r6arg = <T extends Base, U extends Derived>(x: (arg: T) => U) => <T>null;
|
|
>r6arg : Symbol(r6arg, Decl(subtypingWithCallSignatures4.ts, 82, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 82, 13))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 82, 28))
|
|
>Derived : Symbol(Derived, Decl(subtypingWithCallSignatures4.ts, 2, 27))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 82, 48))
|
|
>arg : Symbol(arg, Decl(subtypingWithCallSignatures4.ts, 82, 52))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 82, 13))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 82, 28))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 82, 13))
|
|
|
|
var r6arg2 = <T extends Base>(x: (arg: T) => Derived) => <T>null;
|
|
>r6arg2 : Symbol(r6arg2, Decl(subtypingWithCallSignatures4.ts, 83, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 83, 14))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 83, 30))
|
|
>arg : Symbol(arg, Decl(subtypingWithCallSignatures4.ts, 83, 34))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 83, 14))
|
|
>Derived : Symbol(Derived, Decl(subtypingWithCallSignatures4.ts, 2, 27))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 83, 14))
|
|
|
|
var r6 = foo6(r6arg);
|
|
>r6 : Symbol(r6, Decl(subtypingWithCallSignatures4.ts, 84, 3))
|
|
>foo6 : Symbol(foo6, Decl(subtypingWithCallSignatures4.ts, 20, 35), Decl(subtypingWithCallSignatures4.ts, 22, 73))
|
|
>r6arg : Symbol(r6arg, Decl(subtypingWithCallSignatures4.ts, 82, 3))
|
|
|
|
var r6a = [r6arg, r6arg2];
|
|
>r6a : Symbol(r6a, Decl(subtypingWithCallSignatures4.ts, 85, 3))
|
|
>r6arg : Symbol(r6arg, Decl(subtypingWithCallSignatures4.ts, 82, 3))
|
|
>r6arg2 : Symbol(r6arg2, Decl(subtypingWithCallSignatures4.ts, 83, 3))
|
|
|
|
var r6b = [r6arg2, r6arg];
|
|
>r6b : Symbol(r6b, Decl(subtypingWithCallSignatures4.ts, 86, 3))
|
|
>r6arg2 : Symbol(r6arg2, Decl(subtypingWithCallSignatures4.ts, 83, 3))
|
|
>r6arg : Symbol(r6arg, Decl(subtypingWithCallSignatures4.ts, 82, 3))
|
|
|
|
var r11arg = <T, U>(x: { foo: T }, y: { foo: U; bar: U }) => <Base>null;
|
|
>r11arg : Symbol(r11arg, Decl(subtypingWithCallSignatures4.ts, 88, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 88, 14))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 88, 16))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 88, 20))
|
|
>foo : Symbol(foo, Decl(subtypingWithCallSignatures4.ts, 88, 24))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 88, 14))
|
|
>y : Symbol(y, Decl(subtypingWithCallSignatures4.ts, 88, 34))
|
|
>foo : Symbol(foo, Decl(subtypingWithCallSignatures4.ts, 88, 39))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 88, 16))
|
|
>bar : Symbol(bar, Decl(subtypingWithCallSignatures4.ts, 88, 47))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 88, 16))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
|
|
var r11arg2 = <T>(x: { foo: T }, y: { foo: T; bar: T }) => <Base>null;
|
|
>r11arg2 : Symbol(r11arg2, Decl(subtypingWithCallSignatures4.ts, 89, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 89, 15))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 89, 18))
|
|
>foo : Symbol(foo, Decl(subtypingWithCallSignatures4.ts, 89, 22))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 89, 15))
|
|
>y : Symbol(y, Decl(subtypingWithCallSignatures4.ts, 89, 32))
|
|
>foo : Symbol(foo, Decl(subtypingWithCallSignatures4.ts, 89, 37))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 89, 15))
|
|
>bar : Symbol(bar, Decl(subtypingWithCallSignatures4.ts, 89, 45))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 89, 15))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
|
|
var r11 = foo11(r11arg);
|
|
>r11 : Symbol(r11, Decl(subtypingWithCallSignatures4.ts, 90, 3))
|
|
>foo11 : Symbol(foo11, Decl(subtypingWithCallSignatures4.ts, 23, 35), Decl(subtypingWithCallSignatures4.ts, 25, 79))
|
|
>r11arg : Symbol(r11arg, Decl(subtypingWithCallSignatures4.ts, 88, 3))
|
|
|
|
var r11a = [r11arg, r11arg2];
|
|
>r11a : Symbol(r11a, Decl(subtypingWithCallSignatures4.ts, 91, 3))
|
|
>r11arg : Symbol(r11arg, Decl(subtypingWithCallSignatures4.ts, 88, 3))
|
|
>r11arg2 : Symbol(r11arg2, Decl(subtypingWithCallSignatures4.ts, 89, 3))
|
|
|
|
var r11b = [r11arg2, r11arg];
|
|
>r11b : Symbol(r11b, Decl(subtypingWithCallSignatures4.ts, 92, 3))
|
|
>r11arg2 : Symbol(r11arg2, Decl(subtypingWithCallSignatures4.ts, 89, 3))
|
|
>r11arg : Symbol(r11arg, Decl(subtypingWithCallSignatures4.ts, 88, 3))
|
|
|
|
var r15arg = <U, V>(x: { a: U; b: V; }) => <U[]>null;
|
|
>r15arg : Symbol(r15arg, Decl(subtypingWithCallSignatures4.ts, 94, 3))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 94, 14))
|
|
>V : Symbol(V, Decl(subtypingWithCallSignatures4.ts, 94, 16))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 94, 20))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 94, 24))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 94, 14))
|
|
>b : Symbol(b, Decl(subtypingWithCallSignatures4.ts, 94, 30))
|
|
>V : Symbol(V, Decl(subtypingWithCallSignatures4.ts, 94, 16))
|
|
>U : Symbol(U, Decl(subtypingWithCallSignatures4.ts, 94, 14))
|
|
|
|
var r15arg2 = <T>(x: { a: T; b: T }) => <T[]>null;
|
|
>r15arg2 : Symbol(r15arg2, Decl(subtypingWithCallSignatures4.ts, 95, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 95, 15))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 95, 18))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 95, 22))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 95, 15))
|
|
>b : Symbol(b, Decl(subtypingWithCallSignatures4.ts, 95, 28))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 95, 15))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 95, 15))
|
|
|
|
var r15 = foo15(r15arg);
|
|
>r15 : Symbol(r15, Decl(subtypingWithCallSignatures4.ts, 96, 3))
|
|
>foo15 : Symbol(foo15, Decl(subtypingWithCallSignatures4.ts, 26, 36), Decl(subtypingWithCallSignatures4.ts, 28, 59))
|
|
>r15arg : Symbol(r15arg, Decl(subtypingWithCallSignatures4.ts, 94, 3))
|
|
|
|
var r15a = [r15arg, r15arg2];
|
|
>r15a : Symbol(r15a, Decl(subtypingWithCallSignatures4.ts, 97, 3))
|
|
>r15arg : Symbol(r15arg, Decl(subtypingWithCallSignatures4.ts, 94, 3))
|
|
>r15arg2 : Symbol(r15arg2, Decl(subtypingWithCallSignatures4.ts, 95, 3))
|
|
|
|
var r15b = [r15arg2, r15arg];
|
|
>r15b : Symbol(r15b, Decl(subtypingWithCallSignatures4.ts, 98, 3))
|
|
>r15arg2 : Symbol(r15arg2, Decl(subtypingWithCallSignatures4.ts, 95, 3))
|
|
>r15arg : Symbol(r15arg, Decl(subtypingWithCallSignatures4.ts, 94, 3))
|
|
|
|
var r16arg = <T extends Base>(x: { a: T; b: T }) => <T[]>null;
|
|
>r16arg : Symbol(r16arg, Decl(subtypingWithCallSignatures4.ts, 100, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 100, 14))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 100, 30))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 100, 34))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 100, 14))
|
|
>b : Symbol(b, Decl(subtypingWithCallSignatures4.ts, 100, 40))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 100, 14))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 100, 14))
|
|
|
|
var r16arg2 = <T extends Base>(x: { a: T; b: T }) => <T[]>null;
|
|
>r16arg2 : Symbol(r16arg2, Decl(subtypingWithCallSignatures4.ts, 101, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 101, 15))
|
|
>Base : Symbol(Base, Decl(subtypingWithCallSignatures4.ts, 0, 0))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 101, 31))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 101, 35))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 101, 15))
|
|
>b : Symbol(b, Decl(subtypingWithCallSignatures4.ts, 101, 41))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 101, 15))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 101, 15))
|
|
|
|
var r16 = foo16(r16arg);
|
|
>r16 : Symbol(r16, Decl(subtypingWithCallSignatures4.ts, 102, 3))
|
|
>foo16 : Symbol(foo16, Decl(subtypingWithCallSignatures4.ts, 29, 36), Decl(subtypingWithCallSignatures4.ts, 31, 72))
|
|
>r16arg : Symbol(r16arg, Decl(subtypingWithCallSignatures4.ts, 100, 3))
|
|
|
|
var r16a = [r16arg, r16arg2];
|
|
>r16a : Symbol(r16a, Decl(subtypingWithCallSignatures4.ts, 103, 3))
|
|
>r16arg : Symbol(r16arg, Decl(subtypingWithCallSignatures4.ts, 100, 3))
|
|
>r16arg2 : Symbol(r16arg2, Decl(subtypingWithCallSignatures4.ts, 101, 3))
|
|
|
|
var r16b = [r16arg2, r16arg];
|
|
>r16b : Symbol(r16b, Decl(subtypingWithCallSignatures4.ts, 104, 3))
|
|
>r16arg2 : Symbol(r16arg2, Decl(subtypingWithCallSignatures4.ts, 101, 3))
|
|
>r16arg : Symbol(r16arg, Decl(subtypingWithCallSignatures4.ts, 100, 3))
|
|
|
|
var r17arg = <T>(x: (a: T) => T) => <T[]>null;
|
|
>r17arg : Symbol(r17arg, Decl(subtypingWithCallSignatures4.ts, 106, 3))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 106, 14))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 106, 17))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 106, 21))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 106, 14))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 106, 14))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 106, 14))
|
|
|
|
var r17 = foo17(r17arg);
|
|
>r17 : Symbol(r17, Decl(subtypingWithCallSignatures4.ts, 107, 3))
|
|
>foo17 : Symbol(foo17, Decl(subtypingWithCallSignatures4.ts, 32, 36), Decl(subtypingWithCallSignatures4.ts, 37, 3))
|
|
>r17arg : Symbol(r17arg, Decl(subtypingWithCallSignatures4.ts, 106, 3))
|
|
|
|
var r18arg = (x: <T>(a: T) => T) => <any[]>null;
|
|
>r18arg : Symbol(r18arg, Decl(subtypingWithCallSignatures4.ts, 109, 3))
|
|
>x : Symbol(x, Decl(subtypingWithCallSignatures4.ts, 109, 14))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 109, 18))
|
|
>a : Symbol(a, Decl(subtypingWithCallSignatures4.ts, 109, 21))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 109, 18))
|
|
>T : Symbol(T, Decl(subtypingWithCallSignatures4.ts, 109, 18))
|
|
|
|
var r18 = foo18(r18arg);
|
|
>r18 : Symbol(r18, Decl(subtypingWithCallSignatures4.ts, 110, 3))
|
|
>foo18 : Symbol(foo18, Decl(subtypingWithCallSignatures4.ts, 38, 36), Decl(subtypingWithCallSignatures4.ts, 49, 3))
|
|
>r18arg : Symbol(r18arg, Decl(subtypingWithCallSignatures4.ts, 109, 3))
|
|
|