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
Scala 3 migration warning for implicits found in package prefix #10621
Conversation
Seems to be green. A question is: if an implicit is available both by an import as well as through a prefix of the requested type, is the imported one preferred by spec, by implementation, or just by luck? It seems to be the case in the test as we're not seeing the warning once the import is added, but I haven't checked why. |
Sorry if I don't understand the question, but implicits in lexical scope are checked before implicit scope. The package prefix was a "part" of the type that contributes to implicit scope. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You make it look easy.
872fd69
to
bcdb45c
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Just yesterday I was saying, Didn't they undeprecate package object inheritance? |
This comment was marked as resolved.
This comment was marked as resolved.
The implicit scope in Scala 3 no longer includes the requested type's package prefix
community build regressions here; see scala/community-build#1710 (comment) |
followup PR is #10685 |
The implicit scope in Scala 3 no longer includes the requested type's package prefix.
Includes commits of #10573.
Fixes scala/bug#12919