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

Use context.outers instead of owner chain to find class for suspicious top-level resolution #20717

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Jun 21, 2024

Fixes #20651
Fixes #7713

Also tweak the message text to express Odersky's formulation of the rule.

Universal method synchronized does not resolve to the enclosing class

Follow-up to #20312

@som-snytt som-snytt marked this pull request as ready for review June 21, 2024 16:35
@som-snytt som-snytt requested a review from mbovel June 21, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant