Assignment to type alias containing T[keyof T]
property does not respects variance
#32311
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
TypeScript Version: 3.6.0-dev.20190709
Search Terms: generic variance, tuple overload, T[keyof T], generic assignment
Code
Expected behavior:
No error.
Actual behavior:
Error.
Playground Link:
Playground
Related Issues:
Not sure. Maybe #31659?
The text was updated successfully, but these errors were encountered: