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

Avoid shadowing by private definitions in more situations #18142

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 4, 2023

There's a tricky case where when selecting a member we find a private definition first, which is not accessible, but which shadows another definition. We handled that case correctly on direct member selection, but not when a member was looked up in an import, nor when a member was searched in an implicit.

Fixes #18135

There's a tricky case where when selecting a member we find a private definition
first, which is not accessible, but which shadows another definition. We handled
that case correctly on direct member selection, but not when a member was looked
up in an import, not when a member was searched in an implicit.
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I'd just reached "def implicitMembers" when you'd submitted 😄

@dwijnand dwijnand merged commit 18f355d into scala:main Jul 5, 2023
17 checks passed
@dwijnand dwijnand deleted the fix-18135 branch July 5, 2023 07:07
@Kordyjan Kordyjan added this to the 3.4.0 milestone Aug 1, 2023
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.

Constructor parameter shadows parent implicit val
3 participants