-
Notifications
You must be signed in to change notification settings - Fork 1.1k
current package not preferred over imported package #5206
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
Comments
See also: scala/bug#2458. I prefer Dotty's behaviour and I'd like to see it backported to Scala 2. |
This is intended. If you compile with
|
@allanrenucci s/Not/Note/ ? |
Oops. I meant "Note". Closing since it is intended behaviour |
you mean scala/scala#6589? |
@SethTisue how did I miss that?! 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have three files:
They compile with Scala 2.12. With Dotty, I get:
In object foo.B, Scala 2.12 prefers foo.A over foo.bar.A because foo.A is in the same package. But Dotty seems to prefer foo.bar.A over foo.A because foo.bar.A is being imported.
The text was updated successfully, but these errors were encountered: