Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure lookup is for a Type narrower than the Method signature #49444

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Apr 20, 2023

The type_more_complex widening might result in a wider value here, based on the needs of inference (in particular, due to recursion widening), but we only care about the dispatch lookups that could have resulted in this particular Method before, not any other wider results. The method-addition logic already had this type-intersection call, but it was missing here, sometimes resulting in inefficient lookups.

The type_more_complex widening might result in a wider value here, based
on the needs of inference, but we only care about the dispatch lookups
that could have resulted in this particular Method before, not any other
wider results.
@vtjnash vtjnash merged commit 2768ec5 into master Apr 24, 2023
@vtjnash vtjnash deleted the jn/invalidate-intersect-only branch April 24, 2023 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant