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
bug with implicits methods declared after imports #2206
Comments
Imported From: https://issues.scala-lang.org/browse/SI-2206?orig=1 |
@paulp said: implicit def ax(a: A): AX = new AX |
@TiarkRompf said: |
@paulp said:
I probably wasn't clear in my first comment - in order to generate a better error message I need to understand why it's an error. I would have expected that explicitly importing the contents of an object, regardless of the location of that object, means that the implicits inside the object would now be eligible for statements following the import. As that is not the case, I'm not sure what the message would say. It would certainly be nice though if when there is a type error, and the compiler has some knowledge of an ineligible implicit that would have made the error go away, if it would tell you both the implicit and why it wasn't used. |
@paulp said: |
@odersky said: |
@paulp said: |
@paulp said: |
I think that either import should fail or (preferred to me, code should be compileable).
2.7.5.final
The text was updated successfully, but these errors were encountered: