You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignmentCompatWithConstructSignatures5.errors.txt
+48-34Lines changed: 48 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,30 @@
1
-
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures5.ts(40,1): error TS2322: Type 'new <T>(x: T) => void' is not assignable to type 'new <T>(x: T) => T'.
2
-
Type 'void' is not assignable to type 'T'.
3
-
'T' could be instantiated with an arbitrary type which could be unrelated to 'void'.
1
+
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures5.ts(40,1): error TS2419: Types of construct signature are incompatible.
2
+
Type 'new <T>(x: T) => void' is not assignable to type 'new <T>(x: T) => T'.
3
+
Type 'void' is not assignable to type 'T'.
4
+
'T' could be instantiated with an arbitrary type which could be unrelated to 'void'.
4
5
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures5.ts(52,1): error TS2322: Type 'new <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base' is not assignable to type 'new <T, U>(x: { foo: T; }, y: { foo: U; bar: U; }) => Base'.
5
-
Types of parameters 'y' and 'y' are incompatible.
6
-
Type '{ foo: U; bar: U; }' is not assignable to type '{ foo: T; bar: T; }'.
7
-
Types of property 'foo' are incompatible.
8
-
Type 'U' is not assignable to type 'T'.
9
-
'T' could be instantiated with an arbitrary type which could be unrelated to 'U'.
6
+
Types of construct signature are incompatible.
7
+
Type 'new <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base' is not assignable to type 'new <T, U>(x: { foo: T; }, y: { foo: U; bar: U; }) => Base'.
8
+
Types of parameters 'y' and 'y' are incompatible.
9
+
Type '{ foo: U; bar: U; }' is not assignable to type '{ foo: T; bar: T; }'.
10
+
Types of property 'foo' are incompatible.
11
+
Type 'U' is not assignable to type 'T'.
12
+
'T' could be instantiated with an arbitrary type which could be unrelated to 'U'.
10
13
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures5.ts(55,1): error TS2322: Type 'new <T>(x: { a: T; b: T; }) => T[]' is not assignable to type 'new <U, V>(x: { a: U; b: V; }) => U[]'.
11
-
Types of parameters 'x' and 'x' are incompatible.
12
-
Type '{ a: U; b: V; }' is not assignable to type '{ a: U; b: U; }'.
13
-
Types of property 'b' are incompatible.
14
-
Type 'V' is not assignable to type 'U'.
15
-
'U' could be instantiated with an arbitrary type which could be unrelated to 'V'.
14
+
Types of construct signature are incompatible.
15
+
Type 'new <T>(x: { a: T; b: T; }) => T[]' is not assignable to type 'new <U, V>(x: { a: U; b: V; }) => U[]'.
16
+
Types of parameters 'x' and 'x' are incompatible.
17
+
Type '{ a: U; b: V; }' is not assignable to type '{ a: U; b: U; }'.
18
+
Types of property 'b' are incompatible.
19
+
Type 'V' is not assignable to type 'U'.
20
+
'U' could be instantiated with an arbitrary type which could be unrelated to 'V'.
16
21
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures5.ts(58,1): error TS2322: Type 'new <T extends Base>(x: { a: T; b: T; }) => T[]' is not assignable to type 'new <U, V>(x: { a: U; b: V; }) => U[]'.
17
-
Types of parameters 'x' and 'x' are incompatible.
18
-
Type '{ a: U; b: V; }' is not assignable to type '{ a: Base; b: Base; }'.
19
-
Types of property 'a' are incompatible.
20
-
Type 'U' is not assignable to type 'Base'.
22
+
Types of construct signature are incompatible.
23
+
Type 'new <T extends Base>(x: { a: T; b: T; }) => T[]' is not assignable to type 'new <U, V>(x: { a: U; b: V; }) => U[]'.
24
+
Types of parameters 'x' and 'x' are incompatible.
25
+
Type '{ a: U; b: V; }' is not assignable to type '{ a: Base; b: Base; }'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignmentCompatWithConstructSignatures6.errors.txt
+34-24Lines changed: 34 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,22 @@
1
-
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures6.ts(30,1): error TS2322: Type 'new <T>(x: T) => void' is not assignable to type 'new <T>(x: T) => T'.
2
-
Type 'void' is not assignable to type 'T'.
3
-
'T' could be instantiated with an arbitrary type which could be unrelated to 'void'.
1
+
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures6.ts(30,1): error TS2419: Types of construct signature are incompatible.
2
+
Type 'new <T>(x: T) => void' is not assignable to type 'new <T>(x: T) => T'.
3
+
Type 'void' is not assignable to type 'T'.
4
+
'T' could be instantiated with an arbitrary type which could be unrelated to 'void'.
4
5
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures6.ts(39,1): error TS2322: Type 'new <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base' is not assignable to type 'new <T, U>(x: { foo: T; }, y: { foo: U; bar: U; }) => Base'.
5
-
Types of parameters 'y' and 'y' are incompatible.
6
-
Type '{ foo: U; bar: U; }' is not assignable to type '{ foo: T; bar: T; }'.
7
-
Types of property 'foo' are incompatible.
8
-
Type 'U' is not assignable to type 'T'.
9
-
'T' could be instantiated with an arbitrary type which could be unrelated to 'U'.
6
+
Types of construct signature are incompatible.
7
+
Type 'new <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base' is not assignable to type 'new <T, U>(x: { foo: T; }, y: { foo: U; bar: U; }) => Base'.
8
+
Types of parameters 'y' and 'y' are incompatible.
9
+
Type '{ foo: U; bar: U; }' is not assignable to type '{ foo: T; bar: T; }'.
10
+
Types of property 'foo' are incompatible.
11
+
Type 'U' is not assignable to type 'T'.
12
+
'T' could be instantiated with an arbitrary type which could be unrelated to 'U'.
10
13
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures6.ts(42,1): error TS2322: Type 'new <T extends Base>(x: { a: T; b: T; }) => T[]' is not assignable to type 'new <T>(x: { a: T; b: T; }) => T[]'.
11
-
Types of parameters 'x' and 'x' are incompatible.
12
-
Type '{ a: T; b: T; }' is not assignable to type '{ a: Base; b: Base; }'.
13
-
Types of property 'a' are incompatible.
14
-
Type 'T' is not assignable to type 'Base'.
14
+
Types of construct signature are incompatible.
15
+
Type 'new <T extends Base>(x: { a: T; b: T; }) => T[]' is not assignable to type 'new <T>(x: { a: T; b: T; }) => T[]'.
16
+
Types of parameters 'x' and 'x' are incompatible.
17
+
Type '{ a: T; b: T; }' is not assignable to type '{ a: Base; b: Base; }'.
0 commit comments