-
Notifications
You must be signed in to change notification settings - Fork 21
Shadowing rules inconsistent for packages and objects #8559
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
Imported From: https://issues.scala-lang.org/browse/SI-8559?orig=1 |
@som-snytt said: I don't think twelve is a record. In fact, Of course, these numbers are skewed by under-reporting. |
@retronym said:
Intuition suggests that In this case, shadowing is as specced:
See also #2458 / https://github.com/retronym/scala/tree/ticket/2458, in which I have a fix for the arbiter of this rule. I'll add a task to that ticket to add a clarification to the spec along these lines. |
@paulp said: |
@som-snytt said: |
It has to be a bug? Oh well I also must have the record for "Not a Bug", like how home run records can be accompanied by strikeout and walk records.
This one however compiles, and when run indicates that package util was successfully shadowed.
The text was updated successfully, but these errors were encountered: