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
Allow renaming imports from _root_ #9482
Conversation
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.
As Jasper mentions this guard exists due to scala/bug#283 in 4e45e9e without a test case. Could you add that test case now so we don't accidentally regress on that, please?
@dwijnand Do you mean |
I'm not sure if it's just that or that + the use of a static method. So just the test case as it is in the ticket, IMO. |
It's charming how back then sometimes they used parens and sometimes not. Fixing a 3-digit ticket is pretty cool, but adding a 3-digit test case is a close second. |
@lrytz final review/merge? |
@som-snytt is there anything in the spec about this? |
Spec 9.4 doesn't mention the previous limitation. |
Allow
import _root_.{x => y}
Fixes scala/bug#9125