Skip to content

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
@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