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
Looks like a variance measurement issue. C and D are compared structurally while T<A> and T<B> get compared by variance (i.e. by directly comparing their type arguments), which always fails because neither A nor B is assignable to the other.
This is the vital clue:
Property 'z' is missing in type 'A' but required in type 'B'.
Bug Report
🔎 Search Terms
generic
unassignable type
uncomputed type
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
TA_extends_TB
isfalse
.a
is not assignable tob
.🙂 Expected behavior
TA_extends_TB
should betrue
, the same way asC_extends_D
andPickA_extends_PickB
.a
should be assignable tob
and vice-versa, the same way asc
andd
.The text was updated successfully, but these errors were encountered: