-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Explicitly state empty package in extendedLocationText #18748
Conversation
nicolasstucki
commented
Oct 23, 2023
•
edited
Loading
edited
@@ -601,6 +601,8 @@ class PlainPrinter(_ctx: Context) extends Printer { | |||
|
|||
def extendedLocationText(sym: Symbol): Text = | |||
if (!sym.exists) "" | |||
else if isEmptyPrefix(sym.owner) then | |||
" in the root package" |
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.
shouldn't it be the empty package? SLS 9.2:
Top-level definitions outside a packaging are assumed to be injected into a special empty package. That package cannot be named and therefore cannot be imported. However, members of the empty package are visible to each other without qualification.
" in the root package" | |
" in the empty package" |
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.
Updated
087fa9d
to
a6ef339
Compare