-
Notifications
You must be signed in to change notification settings - Fork 21
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
Inaccessible method can cause implicit conversion search to fail #11787
Labels
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
has PR
implicit
Milestone
Comments
Can we say that #6794 is the canonical issue? There are so many problems in this area - inaccessible types inferred, inaccessible members available as implicits or escaping their definition... |
som-snytt
added
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
has PR
labels
Apr 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
has PR
implicit
This code doesn't compile:
The error message says there's an ambiguity:
The following also fails (as expected):
Because:
So a method that isn't actually a candidate for the implicit conversion can still cause the search to fail because of ambiguity.
I've confirmed that the code above doesn't compile on 2.11.12, 2.12.10, and 2.13.1. The problem looks vaguely familiar to me but I couldn't find a previous report.
The text was updated successfully, but these errors were encountered: