Inferring less information for generics in 4.2+ compared to previous versions #45471
Labels
Needs Investigation
This issue needs a team member to investigate its status.
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
Bug Report
infer used as the value of a generic no longer infers the actual value, but it infers the default value of that generic argument.
🔎 Search Terms
infer, unknown, default, generic
possibly similar issues?
#43161
#42939
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code in 4.2.3
Playground link with relevant code in 4.1.5
💻 Code
🙁 Actual behavior
the inferred value is the default of the generic
🙂 Expected behavior
the inferred value is the actual value of the generic, like it used to do.
The text was updated successfully, but these errors were encountered: