Concrete object not assignable to a generic mapped type with partially concrete constraint #49063
Labels
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Bug Report
🔎 Search Terms
concrete object, assignable, generic mapped type, concrete constraint, partially
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
The concrete object is not assignable to this generic mapped with a partially concrete constraint
🙂 Expected behavior
This should be allowed, or the second assignment (the one to
test['*']
) should also be considered as invalid.The problem originates here where this relation check fails:
Which leads us to checking if a type is assignable to a conditional type and that is rarely even possible, as only limited scenarios are even checked for such a case (here)
The text was updated successfully, but these errors were encountered: