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
Type 'Base[]' is not assignable to type 'Derived2[]'.
49
-
Type 'Base' is missing the following properties from type 'Derived2': baz, bar
49
+
Type 'Base' is missing the following properties from type 'Derived2': bar, baz
50
50
assignmentCompatWithCallSignatures3.ts(83,1): error TS2322: Type '(x: Base[], y: Derived[]) => Derived[]' is not assignable to type '<T extends Array<Derived>>(x: Base[], y: T) => T'.
51
51
Type 'Derived[]' is not assignable to type 'T'.
52
52
'Derived[]' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'Derived[]'.
Copy file name to clipboardexpand all lines: tests/baselines/reference/assignmentCompatWithConstructSignatures3.errors.txt
+2-2
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ assignmentCompatWithConstructSignatures3.ts(80,1): error TS2322: Type 'new (x: B
46
46
Types of parameters 'y' and 'y' are incompatible.
47
47
Type 'T' is not assignable to type 'Derived2[]'.
48
48
Type 'Base[]' is not assignable to type 'Derived2[]'.
49
-
Type 'Base' is missing the following properties from type 'Derived2': baz, bar
49
+
Type 'Base' is missing the following properties from type 'Derived2': bar, baz
50
50
assignmentCompatWithConstructSignatures3.ts(83,1): error TS2322: Type 'new (x: Base[], y: Derived[]) => Derived[]' is not assignable to type 'new <T extends Array<Derived>>(x: Base[], y: T) => T'.
51
51
Type 'Derived[]' is not assignable to type 'T'.
52
52
'Derived[]' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'Derived[]'.
0 commit comments