mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
407 lines
24 KiB
Plaintext
407 lines
24 KiB
Plaintext
//// [tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts] ////
|
|
|
|
=== assignmentCompatWithConstructSignatures4.ts ===
|
|
// checking assignment compatibility relations for function types.
|
|
|
|
namespace Errors {
|
|
>Errors : Symbol(Errors, Decl(assignmentCompatWithConstructSignatures4.ts, 0, 0))
|
|
|
|
class Base { foo: string; }
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>foo : Symbol(Base.foo, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 16))
|
|
|
|
class Derived extends Base { bar: string; }
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>bar : Symbol(Derived.bar, Decl(assignmentCompatWithConstructSignatures4.ts, 4, 32))
|
|
|
|
class Derived2 extends Derived { baz: string; }
|
|
>Derived2 : Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures4.ts, 4, 47))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>baz : Symbol(Derived2.baz, Decl(assignmentCompatWithConstructSignatures4.ts, 5, 36))
|
|
|
|
class OtherDerived extends Base { bing: string; }
|
|
>OtherDerived : Symbol(OtherDerived, Decl(assignmentCompatWithConstructSignatures4.ts, 5, 51))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>bing : Symbol(OtherDerived.bing, Decl(assignmentCompatWithConstructSignatures4.ts, 6, 37))
|
|
|
|
namespace WithNonGenericSignaturesInBaseType {
|
|
>WithNonGenericSignaturesInBaseType : Symbol(WithNonGenericSignaturesInBaseType, Decl(assignmentCompatWithConstructSignatures4.ts, 6, 53))
|
|
|
|
// target type with non-generic call signatures
|
|
declare var a2: new (x: number) => string[];
|
|
>a2 : Symbol(a2, Decl(assignmentCompatWithConstructSignatures4.ts, 10, 19))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 10, 29))
|
|
|
|
declare var a7: new (x: (arg: Base) => Derived) => (r: Base) => Derived2;
|
|
>a7 : Symbol(a7, Decl(assignmentCompatWithConstructSignatures4.ts, 11, 19))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 11, 29))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures4.ts, 11, 33))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures4.ts, 11, 60))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>Derived2 : Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures4.ts, 4, 47))
|
|
|
|
declare var a8: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived;
|
|
>a8 : Symbol(a8, Decl(assignmentCompatWithConstructSignatures4.ts, 12, 19))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 12, 29))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures4.ts, 12, 33))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures4.ts, 12, 55))
|
|
>arg2 : Symbol(arg2, Decl(assignmentCompatWithConstructSignatures4.ts, 12, 60))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures4.ts, 12, 88))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
|
|
declare var a10: new (...x: Base[]) => Base;
|
|
>a10 : Symbol(a10, Decl(assignmentCompatWithConstructSignatures4.ts, 13, 19))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 13, 30))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
|
|
declare var a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base;
|
|
>a11 : Symbol(a11, Decl(assignmentCompatWithConstructSignatures4.ts, 14, 19))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 14, 30))
|
|
>foo : Symbol(foo, Decl(assignmentCompatWithConstructSignatures4.ts, 14, 34))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures4.ts, 14, 49))
|
|
>foo : Symbol(foo, Decl(assignmentCompatWithConstructSignatures4.ts, 14, 54))
|
|
>bar : Symbol(bar, Decl(assignmentCompatWithConstructSignatures4.ts, 14, 67))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
|
|
declare var a12: new (x: Array<Base>, y: Array<Derived2>) => Array<Derived>;
|
|
>a12 : Symbol(a12, Decl(assignmentCompatWithConstructSignatures4.ts, 15, 19))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 15, 30))
|
|
>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(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures4.ts, 15, 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, --, --))
|
|
>Derived2 : Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures4.ts, 4, 47))
|
|
>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(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
|
|
declare var a14: {
|
|
>a14 : Symbol(a14, Decl(assignmentCompatWithConstructSignatures4.ts, 16, 19))
|
|
|
|
new (x: number): number[];
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 17, 21))
|
|
|
|
new (x: string): string[];
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 18, 21))
|
|
|
|
};
|
|
declare var a15: new (x: { a: string; b: number }) => number;
|
|
>a15 : Symbol(a15, Decl(assignmentCompatWithConstructSignatures4.ts, 20, 19))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 20, 30))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 20, 34))
|
|
>b : Symbol(b, Decl(assignmentCompatWithConstructSignatures4.ts, 20, 45))
|
|
|
|
declare var a16: {
|
|
>a16 : Symbol(a16, Decl(assignmentCompatWithConstructSignatures4.ts, 21, 19))
|
|
|
|
new (x: {
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 22, 21))
|
|
|
|
new (a: number): number;
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 23, 25))
|
|
|
|
new (a?: number): number;
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 24, 25))
|
|
|
|
}): number[];
|
|
new (x: {
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 26, 21))
|
|
|
|
new (a: boolean): boolean;
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 27, 25))
|
|
|
|
new (a?: boolean): boolean;
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 28, 25))
|
|
|
|
}): boolean[];
|
|
};
|
|
declare var a17: {
|
|
>a17 : Symbol(a17, Decl(assignmentCompatWithConstructSignatures4.ts, 31, 19))
|
|
|
|
new (x: {
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 32, 21))
|
|
|
|
new <T extends Derived>(a: T): T;
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 33, 25))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 33, 44))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 33, 25))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 33, 25))
|
|
|
|
new <T extends Base>(a: T): T;
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 34, 25))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 34, 41))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 34, 25))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 34, 25))
|
|
|
|
}): any[];
|
|
new (x: {
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 36, 21))
|
|
|
|
new <T extends Derived2>(a: T): T;
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 37, 25))
|
|
>Derived2 : Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures4.ts, 4, 47))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 37, 45))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 37, 25))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 37, 25))
|
|
|
|
new <T extends Base>(a: T): T;
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 38, 25))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 38, 41))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 38, 25))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 38, 25))
|
|
|
|
}): any[];
|
|
};
|
|
|
|
declare var b2: new <T, U>(x: T) => U[];
|
|
>b2 : Symbol(b2, Decl(assignmentCompatWithConstructSignatures4.ts, 42, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 42, 29))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures4.ts, 42, 31))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 42, 35))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 42, 29))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures4.ts, 42, 31))
|
|
|
|
a2 = b2; // ok
|
|
>a2 : Symbol(a2, Decl(assignmentCompatWithConstructSignatures4.ts, 10, 19))
|
|
>b2 : Symbol(b2, Decl(assignmentCompatWithConstructSignatures4.ts, 42, 19))
|
|
|
|
b2 = a2; // ok
|
|
>b2 : Symbol(b2, Decl(assignmentCompatWithConstructSignatures4.ts, 42, 19))
|
|
>a2 : Symbol(a2, Decl(assignmentCompatWithConstructSignatures4.ts, 10, 19))
|
|
|
|
declare var b7: new <T extends Base, U extends Derived, V extends Derived2>(x: (arg: T) => U) => (r: T) => V;
|
|
>b7 : Symbol(b7, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 29))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 44))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>V : Symbol(V, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 63))
|
|
>Derived2 : Symbol(Derived2, Decl(assignmentCompatWithConstructSignatures4.ts, 4, 47))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 84))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 88))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 29))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 44))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 106))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 29))
|
|
>V : Symbol(V, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 63))
|
|
|
|
a7 = b7; // ok
|
|
>a7 : Symbol(a7, Decl(assignmentCompatWithConstructSignatures4.ts, 11, 19))
|
|
>b7 : Symbol(b7, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 19))
|
|
|
|
b7 = a7; // ok
|
|
>b7 : Symbol(b7, Decl(assignmentCompatWithConstructSignatures4.ts, 46, 19))
|
|
>a7 : Symbol(a7, Decl(assignmentCompatWithConstructSignatures4.ts, 11, 19))
|
|
|
|
declare var b8: new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U;
|
|
>b8 : Symbol(b8, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 29))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 44))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 64))
|
|
>arg : Symbol(arg, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 68))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 29))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 44))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 81))
|
|
>arg2 : Symbol(arg2, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 86))
|
|
>foo : Symbol(foo, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 93))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 44))
|
|
>r : Symbol(r, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 120))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 29))
|
|
>U : Symbol(U, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 44))
|
|
|
|
a8 = b8; // error, type mismatch
|
|
>a8 : Symbol(a8, Decl(assignmentCompatWithConstructSignatures4.ts, 12, 19))
|
|
>b8 : Symbol(b8, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 19))
|
|
|
|
b8 = a8; // error
|
|
>b8 : Symbol(b8, Decl(assignmentCompatWithConstructSignatures4.ts, 50, 19))
|
|
>a8 : Symbol(a8, Decl(assignmentCompatWithConstructSignatures4.ts, 12, 19))
|
|
|
|
|
|
declare var b10: new <T extends Derived>(...x: T[]) => T;
|
|
>b10 : Symbol(b10, Decl(assignmentCompatWithConstructSignatures4.ts, 55, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 55, 30))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 55, 49))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 55, 30))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 55, 30))
|
|
|
|
a10 = b10; // ok
|
|
>a10 : Symbol(a10, Decl(assignmentCompatWithConstructSignatures4.ts, 13, 19))
|
|
>b10 : Symbol(b10, Decl(assignmentCompatWithConstructSignatures4.ts, 55, 19))
|
|
|
|
b10 = a10; // ok
|
|
>b10 : Symbol(b10, Decl(assignmentCompatWithConstructSignatures4.ts, 55, 19))
|
|
>a10 : Symbol(a10, Decl(assignmentCompatWithConstructSignatures4.ts, 13, 19))
|
|
|
|
declare var b11: new <T extends Derived>(x: T, y: T) => T;
|
|
>b11 : Symbol(b11, Decl(assignmentCompatWithConstructSignatures4.ts, 59, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 59, 30))
|
|
>Derived : Symbol(Derived, Decl(assignmentCompatWithConstructSignatures4.ts, 3, 31))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 59, 49))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 59, 30))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures4.ts, 59, 54))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 59, 30))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 59, 30))
|
|
|
|
a11 = b11; // ok
|
|
>a11 : Symbol(a11, Decl(assignmentCompatWithConstructSignatures4.ts, 14, 19))
|
|
>b11 : Symbol(b11, Decl(assignmentCompatWithConstructSignatures4.ts, 59, 19))
|
|
|
|
b11 = a11; // ok
|
|
>b11 : Symbol(b11, Decl(assignmentCompatWithConstructSignatures4.ts, 59, 19))
|
|
>a11 : Symbol(a11, Decl(assignmentCompatWithConstructSignatures4.ts, 14, 19))
|
|
|
|
declare var b12: new <T extends Array<Derived2>>(x: Array<Base>, y: Array<Base>) => T;
|
|
>b12 : Symbol(b12, Decl(assignmentCompatWithConstructSignatures4.ts, 63, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 63, 30))
|
|
>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(assignmentCompatWithConstructSignatures4.ts, 4, 47))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 63, 57))
|
|
>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(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>y : Symbol(y, Decl(assignmentCompatWithConstructSignatures4.ts, 63, 72))
|
|
>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(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 63, 30))
|
|
|
|
a12 = b12; // ok
|
|
>a12 : Symbol(a12, Decl(assignmentCompatWithConstructSignatures4.ts, 15, 19))
|
|
>b12 : Symbol(b12, Decl(assignmentCompatWithConstructSignatures4.ts, 63, 19))
|
|
|
|
b12 = a12; // ok
|
|
>b12 : Symbol(b12, Decl(assignmentCompatWithConstructSignatures4.ts, 63, 19))
|
|
>a12 : Symbol(a12, Decl(assignmentCompatWithConstructSignatures4.ts, 15, 19))
|
|
|
|
declare var b15: new <T>(x: { a: T; b: T }) => T;
|
|
>b15 : Symbol(b15, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 30))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 33))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 37))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 30))
|
|
>b : Symbol(b, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 43))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 30))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 30))
|
|
|
|
a15 = b15; // ok
|
|
>a15 : Symbol(a15, Decl(assignmentCompatWithConstructSignatures4.ts, 20, 19))
|
|
>b15 : Symbol(b15, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 19))
|
|
|
|
b15 = a15; // ok
|
|
>b15 : Symbol(b15, Decl(assignmentCompatWithConstructSignatures4.ts, 67, 19))
|
|
>a15 : Symbol(a15, Decl(assignmentCompatWithConstructSignatures4.ts, 20, 19))
|
|
|
|
declare var b15a: new <T extends Base>(x: { a: T; b: T }) => number;
|
|
>b15a : Symbol(b15a, Decl(assignmentCompatWithConstructSignatures4.ts, 71, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 71, 31))
|
|
>Base : Symbol(Base, Decl(assignmentCompatWithConstructSignatures4.ts, 2, 18))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 71, 47))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 71, 51))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 71, 31))
|
|
>b : Symbol(b, Decl(assignmentCompatWithConstructSignatures4.ts, 71, 57))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 71, 31))
|
|
|
|
a15 = b15a; // ok
|
|
>a15 : Symbol(a15, Decl(assignmentCompatWithConstructSignatures4.ts, 20, 19))
|
|
>b15a : Symbol(b15a, Decl(assignmentCompatWithConstructSignatures4.ts, 71, 19))
|
|
|
|
b15a = a15; // ok
|
|
>b15a : Symbol(b15a, Decl(assignmentCompatWithConstructSignatures4.ts, 71, 19))
|
|
>a15 : Symbol(a15, Decl(assignmentCompatWithConstructSignatures4.ts, 20, 19))
|
|
|
|
declare var b16: new <T>(x: (a: T) => T) => T[];
|
|
>b16 : Symbol(b16, Decl(assignmentCompatWithConstructSignatures4.ts, 75, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 75, 30))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 75, 33))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 75, 37))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 75, 30))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 75, 30))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 75, 30))
|
|
|
|
a16 = b16; // error
|
|
>a16 : Symbol(a16, Decl(assignmentCompatWithConstructSignatures4.ts, 21, 19))
|
|
>b16 : Symbol(b16, Decl(assignmentCompatWithConstructSignatures4.ts, 75, 19))
|
|
|
|
b16 = a16; // error
|
|
>b16 : Symbol(b16, Decl(assignmentCompatWithConstructSignatures4.ts, 75, 19))
|
|
>a16 : Symbol(a16, Decl(assignmentCompatWithConstructSignatures4.ts, 21, 19))
|
|
|
|
declare var b17: new <T>(x: (a: T) => T) => any[];
|
|
>b17 : Symbol(b17, Decl(assignmentCompatWithConstructSignatures4.ts, 79, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 79, 30))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 79, 33))
|
|
>a : Symbol(a, Decl(assignmentCompatWithConstructSignatures4.ts, 79, 37))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 79, 30))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 79, 30))
|
|
|
|
a17 = b17; // error
|
|
>a17 : Symbol(a17, Decl(assignmentCompatWithConstructSignatures4.ts, 31, 19))
|
|
>b17 : Symbol(b17, Decl(assignmentCompatWithConstructSignatures4.ts, 79, 19))
|
|
|
|
b17 = a17; // error
|
|
>b17 : Symbol(b17, Decl(assignmentCompatWithConstructSignatures4.ts, 79, 19))
|
|
>a17 : Symbol(a17, Decl(assignmentCompatWithConstructSignatures4.ts, 31, 19))
|
|
}
|
|
|
|
namespace WithGenericSignaturesInBaseType {
|
|
>WithGenericSignaturesInBaseType : Symbol(WithGenericSignaturesInBaseType, Decl(assignmentCompatWithConstructSignatures4.ts, 82, 5))
|
|
|
|
// target type has generic call signature
|
|
declare var a2: new <T>(x: T) => T[];
|
|
>a2 : Symbol(a2, Decl(assignmentCompatWithConstructSignatures4.ts, 86, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 86, 29))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 86, 32))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 86, 29))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 86, 29))
|
|
|
|
declare var b2: new <T>(x: T) => string[];
|
|
>b2 : Symbol(b2, Decl(assignmentCompatWithConstructSignatures4.ts, 87, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 87, 29))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 87, 32))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 87, 29))
|
|
|
|
a2 = b2; // ok
|
|
>a2 : Symbol(a2, Decl(assignmentCompatWithConstructSignatures4.ts, 86, 19))
|
|
>b2 : Symbol(b2, Decl(assignmentCompatWithConstructSignatures4.ts, 87, 19))
|
|
|
|
b2 = a2; // ok
|
|
>b2 : Symbol(b2, Decl(assignmentCompatWithConstructSignatures4.ts, 87, 19))
|
|
>a2 : Symbol(a2, Decl(assignmentCompatWithConstructSignatures4.ts, 86, 19))
|
|
|
|
// target type has generic call signature
|
|
declare var a3: new <T>(x: T) => string[];
|
|
>a3 : Symbol(a3, Decl(assignmentCompatWithConstructSignatures4.ts, 92, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 92, 29))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 92, 32))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 92, 29))
|
|
|
|
declare var b3: new <T>(x: T) => T[];
|
|
>b3 : Symbol(b3, Decl(assignmentCompatWithConstructSignatures4.ts, 93, 19))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 93, 29))
|
|
>x : Symbol(x, Decl(assignmentCompatWithConstructSignatures4.ts, 93, 32))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 93, 29))
|
|
>T : Symbol(T, Decl(assignmentCompatWithConstructSignatures4.ts, 93, 29))
|
|
|
|
a3 = b3; // ok
|
|
>a3 : Symbol(a3, Decl(assignmentCompatWithConstructSignatures4.ts, 92, 19))
|
|
>b3 : Symbol(b3, Decl(assignmentCompatWithConstructSignatures4.ts, 93, 19))
|
|
|
|
b3 = a3; // ok
|
|
>b3 : Symbol(b3, Decl(assignmentCompatWithConstructSignatures4.ts, 93, 19))
|
|
>a3 : Symbol(a3, Decl(assignmentCompatWithConstructSignatures4.ts, 92, 19))
|
|
}
|
|
}
|