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
{{ message }}
Repository navigation
Contextual inference for nested calls that return constructors #57747
Domain: check: Type InferenceRelated to type inference performed during signature resolution or `infer` type resolutionPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
#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:
(For future readers:) #57710 was the issue that prompted the revert, and whatever test case we can distill from it should be considered alongside the repro for the original issue in the OP.
Domain: check: Type InferenceRelated to type inference performed during signature resolution or `infer` type resolutionPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
Activity
sandersn commentedon Mar 12, 2024
Mateusz Burzyński (@Andarist) this tracks your original fix until the performance bug which it exposed is fixed.
weswigham commentedon Mar 12, 2024
(For future readers:) #57710 was the issue that prompted the revert, and whatever test case we can distill from it should be considered alongside the repro for the original issue in the OP.