Contextual inference for nested calls that return constructors #57747
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
#54813 attempted to make this work, but exposed an underlying bug that caused too many instantiations. Once that bug is fixed, the code in #54813 should be re-applied if possible.
Here's an example of something that should work, but doesn't:
ctx
should have type{ count: number }
, inferred from the context ofassign
, but doesn't.The text was updated successfully, but these errors were encountered: