-
Notifications
You must be signed in to change notification settings - Fork 21
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
Top level packages can't be aliased in import declaration #9125
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9125?orig=1 |
was reported again at #12329 — I've changed the issue title to reflect that all top level packages are affected, not just the |
Relatedly createdly scala/scala3#11296 |
This was once disabled as part of the fix for #283. For any interested archaeologists. |
Thanks, I did dig that up yesterday. It was right before the winter holidays, 2007. Probably there was not a lot of discussion about imposing the limitation as a stop-gap. |
Maybe back then import aliasing didn't exist yet? In that case it would make sense to disallow |
Relatedly, my linked ticket was due to my own partial understanding. You want an import to shadow an enclosing package name. Using
Recently I was toying in this area because of the question whether it's possible to shadow |
It doesn't work in both the REPL and the IDE.
The text was updated successfully, but these errors were encountered: