Skip to content

Improve error message in overloading resolution #11553

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

Merged
merged 2 commits into from
Feb 28, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 27, 2021

Improve error message when trying to do overloading resolution of alternatives introduced by refinements.
As i8736 shows, it's not so simple to identify overloaded members introduced by refinements, since this can
arise through intersection and de-aliasing. So our best bet is to make the error message clearer at the
point of overloading resolution.

Fixes #11544

Improve error message when trying to do overloading resolution of alternatives introduces by refinements.
As i8736 shows, it's not so simple to identify overloaded members introduced by refinements, since this can
arise through intersection and de-aliasing. So our best bet is to make the error message clearer at the
point of overloading resolution.
Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

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

LGTM

@odersky odersky merged commit 6c375b5 into scala:master Feb 28, 2021
@odersky odersky deleted the fix-11544 branch February 28, 2021 14:11
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 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.

Ambiguous overload with two structural methods with same name
3 participants