Skip to content

Skip ambiguous reference error when symbols are aliases#16401

Merged
odersky merged 1 commit intoscala:mainfrom
lrytz:ambiguous-alias
Nov 30, 2022
Merged

Skip ambiguous reference error when symbols are aliases#16401
odersky merged 1 commit intoscala:mainfrom
lrytz:ambiguous-alias

Conversation

@lrytz
Copy link
Copy Markdown
Member

@lrytz lrytz commented Nov 23, 2022

Follow-up for #8622, which introduced a new lookup ambiguity if a name is inherited from a parent and also found in an outer scope.

The error is avoided if the two symbols are aliases.

Copy link
Copy Markdown
Contributor

@odersky odersky 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 for the fix!

@odersky odersky merged commit ba2be40 into scala:main Nov 30, 2022
@Kordyjan Kordyjan added this to the 3.3.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.

3 participants