mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
532 lines
32 KiB
Plaintext
532 lines
32 KiB
Plaintext
//// [tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures3.ts] ////
|
|
|
|
=== assignmentCompatWithConstructSignatures3.ts ===
|
|
// checking assignment compatibility relations for function types. All of these are valid.
|
|
|
|
class Base { foo: string; }
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>foo : Symbol(Base.foo, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 12))
|
|
|
|
class Derived extends Base { bar: string; }
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>bar : Symbol(Derived.bar, Decl(assignmentCompatWithConstructSignatures3.ts, 3, 28))
|
|
|
|
class Derived2 extends Derived { baz: string; }
|
|
>Derived2 : Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures3.ts, 3, 43))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>baz : Symbol(Derived2.baz, Decl(assignmentCompatWithConstructSignatures3.ts, 4, 32))
|
|
|
|
class OtherDerived extends Base { bing: string; }
|
|
>OtherDerived : Symbol(OtherDerived, Decl(assignmentCompatWithConstructSignatures3.ts, 4, 47))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>bing : Symbol(OtherDerived.bing, Decl(assignmentCompatWithConstructSignatures3.ts, 5, 33))
|
|
|
|
declare var a: new (x: number) => number[];
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 7, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 7, 20))
|
|
|
|
declare var a2: new (x: number) => string[];
|
|
>a2 : Symbol(a2, Decl(assignmentCompatWithConstructSignatures3.ts, 8, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 8, 21))
|
|
|
|
declare var a3: new (x: number) => void;
|
|
>a3 : Symbol(a3, Decl(assignmentCompatWithConstructSignatures3.ts, 9, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 9, 21))
|
|
|
|
declare var a4: new (x: string, y: number) => string;
|
|
>a4 : Symbol(a4, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 21))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 31))
|
|
|
|
declare var a5: new (x: (arg: string) => number) => string;
|
|
>a5 : Symbol(a5, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 21))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 25))
|
|
|
|
declare var a6: new (x: (arg: Base) => Derived) => Base;
|
|
>a6 : Symbol(a6, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 21))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 25))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
|
|
declare var a7: new (x: (arg: Base) => Derived) => (r: Base) => Derived;
|
|
>a7 : Symbol(a7, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 21))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 25))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 52))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
|
|
declare var a8: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived;
|
|
>a8 : Symbol(a8, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 21))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 25))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 47))
|
|
>arg2 : Symbol(arg2, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 52))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 80))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
|
|
declare var a9: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived;
|
|
>a9 : Symbol(a9, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 21))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 25))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 47))
|
|
>arg2 : Symbol(arg2, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 52))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 80))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
|
|
declare var a10: new (...x: Derived[]) => Derived;
|
|
>a10 : Symbol(a10, Decl(assignmentCompatWithConstructSignatures3.ts, 16, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 16, 22))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
|
|
declare var a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base;
|
|
>a11 : Symbol(a11, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 22))
|
|
>foo : Symbol(foo, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 26))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 41))
|
|
>foo : Symbol(foo, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 46))
|
|
>bar : Symbol(bar, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 59))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
|
|
declare var a12: new (x: Array<Base>, y: Array<Derived2>) => Array<Derived>;
|
|
>a12 : Symbol(a12, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 22))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 37))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Derived2 : Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures3.ts, 3, 43))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
|
|
declare var a13: new (x: Array<Base>, y: Array<Derived>) => Array<Derived>;
|
|
>a13 : Symbol(a13, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 22))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 37))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
|
|
declare var a14: new (x: { a: string; b: number }) => Object;
|
|
>a14 : Symbol(a14, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 11))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 22))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 26))
|
|
>b : Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 37))
|
|
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
|
|
declare var a15: {
|
|
>a15 : Symbol(a15, Decl(assignmentCompatWithConstructSignatures3.ts, 21, 11))
|
|
|
|
new (x: number): number[];
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 22, 9))
|
|
|
|
new (x: string): string[];
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 23, 9))
|
|
}
|
|
declare var a16: {
|
|
>a16 : Symbol(a16, Decl(assignmentCompatWithConstructSignatures3.ts, 25, 11))
|
|
|
|
new <T extends Derived>(x: T): number[];
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 26, 9))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 26, 28))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 26, 9))
|
|
|
|
new <U extends Base>(x: U): number[];
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 27, 9))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 27, 25))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 27, 9))
|
|
}
|
|
declare var a17: {
|
|
>a17 : Symbol(a17, Decl(assignmentCompatWithConstructSignatures3.ts, 29, 11))
|
|
|
|
new (x: new (a: number) => number): number[];
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 30, 9))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 30, 17))
|
|
|
|
new (x: new (a: string) => string): string[];
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 31, 9))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 31, 17))
|
|
|
|
};
|
|
declare var a18: {
|
|
>a18 : Symbol(a18, Decl(assignmentCompatWithConstructSignatures3.ts, 33, 11))
|
|
|
|
new (x: {
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 34, 9))
|
|
|
|
new (a: number): number;
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 35, 13))
|
|
|
|
new (a: string): string;
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 36, 13))
|
|
|
|
}): any[];
|
|
new (x: {
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 38, 9))
|
|
|
|
new (a: boolean): boolean;
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 39, 13))
|
|
|
|
new (a: Date): Date;
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 40, 13))
|
|
>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Date : Symbol(Date, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.scripthost.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
|
|
}): any[];
|
|
}
|
|
|
|
declare var b: new <T>(x: T) => T[];
|
|
>b : Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 20))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 23))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 20))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 20))
|
|
|
|
a = b; // ok
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 7, 11))
|
|
>b : Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 11))
|
|
|
|
b = a; // ok
|
|
>b : Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 44, 11))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 7, 11))
|
|
|
|
declare var b2: new <T>(x: T) => string[];
|
|
>b2 : Symbol(b2, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 21))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 24))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 21))
|
|
|
|
a2 = b2; // ok
|
|
>a2 : Symbol(a2, Decl(assignmentCompatWithConstructSignatures3.ts, 8, 11))
|
|
>b2 : Symbol(b2, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 11))
|
|
|
|
b2 = a2; // ok
|
|
>b2 : Symbol(b2, Decl(assignmentCompatWithConstructSignatures3.ts, 47, 11))
|
|
>a2 : Symbol(a2, Decl(assignmentCompatWithConstructSignatures3.ts, 8, 11))
|
|
|
|
declare var b3: new <T>(x: T) => T;
|
|
>b3 : Symbol(b3, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 21))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 24))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 21))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 21))
|
|
|
|
a3 = b3; // ok
|
|
>a3 : Symbol(a3, Decl(assignmentCompatWithConstructSignatures3.ts, 9, 11))
|
|
>b3 : Symbol(b3, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 11))
|
|
|
|
b3 = a3; // ok
|
|
>b3 : Symbol(b3, Decl(assignmentCompatWithConstructSignatures3.ts, 50, 11))
|
|
>a3 : Symbol(a3, Decl(assignmentCompatWithConstructSignatures3.ts, 9, 11))
|
|
|
|
declare var b4: new <T, U>(x: T, y: U) => T;
|
|
>b4 : Symbol(b4, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 23))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 27))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 21))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 32))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 23))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 21))
|
|
|
|
a4 = b4; // ok
|
|
>a4 : Symbol(a4, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 11))
|
|
>b4 : Symbol(b4, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 11))
|
|
|
|
b4 = a4; // ok
|
|
>b4 : Symbol(b4, Decl(assignmentCompatWithConstructSignatures3.ts, 53, 11))
|
|
>a4 : Symbol(a4, Decl(assignmentCompatWithConstructSignatures3.ts, 10, 11))
|
|
|
|
declare var b5: new <T, U>(x: (arg: T) => U) => T;
|
|
>b5 : Symbol(b5, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 23))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 27))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 31))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 23))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 21))
|
|
|
|
a5 = b5; // ok
|
|
>a5 : Symbol(a5, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 11))
|
|
>b5 : Symbol(b5, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 11))
|
|
|
|
b5 = a5; // ok
|
|
>b5 : Symbol(b5, Decl(assignmentCompatWithConstructSignatures3.ts, 56, 11))
|
|
>a5 : Symbol(a5, Decl(assignmentCompatWithConstructSignatures3.ts, 11, 11))
|
|
|
|
declare var b6: new <T extends Base, U extends Derived>(x: (arg: T) => U) => T;
|
|
>b6 : Symbol(b6, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 21))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 36))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 56))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 60))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 36))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 21))
|
|
|
|
a6 = b6; // ok
|
|
>a6 : Symbol(a6, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 11))
|
|
>b6 : Symbol(b6, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 11))
|
|
|
|
b6 = a6; // ok
|
|
>b6 : Symbol(b6, Decl(assignmentCompatWithConstructSignatures3.ts, 59, 11))
|
|
>a6 : Symbol(a6, Decl(assignmentCompatWithConstructSignatures3.ts, 12, 11))
|
|
|
|
declare var b7: new <T extends Base, U extends Derived>(x: (arg: T) => U) => (r: T) => U;
|
|
>b7 : Symbol(b7, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 21))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 36))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 56))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 60))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 36))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 78))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 36))
|
|
|
|
a7 = b7; // ok
|
|
>a7 : Symbol(a7, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 11))
|
|
>b7 : Symbol(b7, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 11))
|
|
|
|
b7 = a7; // ok
|
|
>b7 : Symbol(b7, Decl(assignmentCompatWithConstructSignatures3.ts, 62, 11))
|
|
>a7 : Symbol(a7, Decl(assignmentCompatWithConstructSignatures3.ts, 13, 11))
|
|
|
|
declare var b8: new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (r: T) => U;
|
|
>b8 : Symbol(b8, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 21))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 36))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 56))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 60))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 36))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 73))
|
|
>arg2 : Symbol(arg2, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 78))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 36))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 97))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 36))
|
|
|
|
a8 = b8; // ok
|
|
>a8 : Symbol(a8, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 11))
|
|
>b8 : Symbol(b8, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 11))
|
|
|
|
b8 = a8; // ok
|
|
>b8 : Symbol(b8, Decl(assignmentCompatWithConstructSignatures3.ts, 65, 11))
|
|
>a8 : Symbol(a8, Decl(assignmentCompatWithConstructSignatures3.ts, 14, 11))
|
|
|
|
declare var b9: new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: string; bing: number }) => U) => (r: T) => U;
|
|
>b9 : Symbol(b9, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 21))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 36))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 56))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 60))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 36))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 73))
|
|
>arg2 : Symbol(arg2, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 78))
|
|
>foo : Symbol(foo, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 85))
|
|
>bing : Symbol(bing, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 98))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 36))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 125))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 21))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 36))
|
|
|
|
a9 = b9; // ok
|
|
>a9 : Symbol(a9, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 11))
|
|
>b9 : Symbol(b9, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 11))
|
|
|
|
b9 = a9; // ok
|
|
>b9 : Symbol(b9, Decl(assignmentCompatWithConstructSignatures3.ts, 68, 11))
|
|
>a9 : Symbol(a9, Decl(assignmentCompatWithConstructSignatures3.ts, 15, 11))
|
|
|
|
declare var b10: new <T extends Derived>(...x: T[]) => T;
|
|
>b10 : Symbol(b10, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 22))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 41))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 22))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 22))
|
|
|
|
a10 = b10; // ok
|
|
>a10 : Symbol(a10, Decl(assignmentCompatWithConstructSignatures3.ts, 16, 11))
|
|
>b10 : Symbol(b10, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 11))
|
|
|
|
b10 = a10; // ok
|
|
>b10 : Symbol(b10, Decl(assignmentCompatWithConstructSignatures3.ts, 71, 11))
|
|
>a10 : Symbol(a10, Decl(assignmentCompatWithConstructSignatures3.ts, 16, 11))
|
|
|
|
declare var b11: new <T extends Base>(x: T, y: T) => T;
|
|
>b11 : Symbol(b11, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 22))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 38))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 22))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 43))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 22))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 22))
|
|
|
|
a11 = b11; // ok
|
|
>a11 : Symbol(a11, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 11))
|
|
>b11 : Symbol(b11, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 11))
|
|
|
|
b11 = a11; // ok
|
|
>b11 : Symbol(b11, Decl(assignmentCompatWithConstructSignatures3.ts, 74, 11))
|
|
>a11 : Symbol(a11, Decl(assignmentCompatWithConstructSignatures3.ts, 17, 11))
|
|
|
|
declare var b12: new <T extends Array<Base>>(x: Array<Base>, y: T) => Array<Derived>;
|
|
>b12 : Symbol(b12, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 22))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 45))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 60))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 22))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
|
|
a12 = b12; // ok
|
|
>a12 : Symbol(a12, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 11))
|
|
>b12 : Symbol(b12, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 11))
|
|
|
|
b12 = a12; // ok
|
|
>b12 : Symbol(b12, Decl(assignmentCompatWithConstructSignatures3.ts, 77, 11))
|
|
>a12 : Symbol(a12, Decl(assignmentCompatWithConstructSignatures3.ts, 18, 11))
|
|
|
|
declare var b13: new <T extends Array<Derived>>(x: Array<Base>, y: T) => T;
|
|
>b13 : Symbol(b13, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 22))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures3.ts, 2, 27))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 48))
|
|
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 63))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 22))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 22))
|
|
|
|
a13 = b13; // ok
|
|
>a13 : Symbol(a13, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 11))
|
|
>b13 : Symbol(b13, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 11))
|
|
|
|
b13 = a13; // ok
|
|
>b13 : Symbol(b13, Decl(assignmentCompatWithConstructSignatures3.ts, 80, 11))
|
|
>a13 : Symbol(a13, Decl(assignmentCompatWithConstructSignatures3.ts, 19, 11))
|
|
|
|
declare var b14: new <T>(x: { a: T; b: T }) => T;
|
|
>b14 : Symbol(b14, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 22))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 25))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 29))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 22))
|
|
>b : Symbol(b, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 35))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 22))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 22))
|
|
|
|
a14 = b14; // ok
|
|
>a14 : Symbol(a14, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 11))
|
|
>b14 : Symbol(b14, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 11))
|
|
|
|
b14 = a14; // ok
|
|
>b14 : Symbol(b14, Decl(assignmentCompatWithConstructSignatures3.ts, 83, 11))
|
|
>a14 : Symbol(a14, Decl(assignmentCompatWithConstructSignatures3.ts, 20, 11))
|
|
|
|
declare var b15: new <T>(x: T) => T[];
|
|
>b15 : Symbol(b15, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 22))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 25))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 22))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 22))
|
|
|
|
a15 = b15; // ok
|
|
>a15 : Symbol(a15, Decl(assignmentCompatWithConstructSignatures3.ts, 21, 11))
|
|
>b15 : Symbol(b15, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 11))
|
|
|
|
b15 = a15; // ok
|
|
>b15 : Symbol(b15, Decl(assignmentCompatWithConstructSignatures3.ts, 86, 11))
|
|
>a15 : Symbol(a15, Decl(assignmentCompatWithConstructSignatures3.ts, 21, 11))
|
|
|
|
declare var b16: new <T extends Base>(x: T) => number[];
|
|
>b16 : Symbol(b16, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 22))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures3.ts, 0, 0))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 38))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 22))
|
|
|
|
a16 = b16; // ok
|
|
>a16 : Symbol(a16, Decl(assignmentCompatWithConstructSignatures3.ts, 25, 11))
|
|
>b16 : Symbol(b16, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 11))
|
|
|
|
b16 = a16; // ok
|
|
>b16 : Symbol(b16, Decl(assignmentCompatWithConstructSignatures3.ts, 89, 11))
|
|
>a16 : Symbol(a16, Decl(assignmentCompatWithConstructSignatures3.ts, 25, 11))
|
|
|
|
declare var b17: new <T>(x: new (a: T) => T) => T[]; // ok
|
|
>b17 : Symbol(b17, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 22))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 25))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 33))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 22))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 22))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 22))
|
|
|
|
a17 = b17; // ok
|
|
>a17 : Symbol(a17, Decl(assignmentCompatWithConstructSignatures3.ts, 29, 11))
|
|
>b17 : Symbol(b17, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 11))
|
|
|
|
b17 = a17; // ok
|
|
>b17 : Symbol(b17, Decl(assignmentCompatWithConstructSignatures3.ts, 92, 11))
|
|
>a17 : Symbol(a17, Decl(assignmentCompatWithConstructSignatures3.ts, 29, 11))
|
|
|
|
declare var b18: new <T>(x: new (a: T) => T) => T[];
|
|
>b18 : Symbol(b18, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 11))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 22))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 25))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 33))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 22))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 22))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 22))
|
|
|
|
a18 = b18; // ok
|
|
>a18 : Symbol(a18, Decl(assignmentCompatWithConstructSignatures3.ts, 33, 11))
|
|
>b18 : Symbol(b18, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 11))
|
|
|
|
b18 = a18; // ok
|
|
>b18 : Symbol(b18, Decl(assignmentCompatWithConstructSignatures3.ts, 95, 11))
|
|
>a18 : Symbol(a18, Decl(assignmentCompatWithConstructSignatures3.ts, 33, 11))
|
|
|