Skip to content

Commit 273b184

Browse files
committed
Don't omit scala. from fullNameString.
The previous fix was too drastic, as it would also have omitted scala, Prefef and other "unqualified owner types" from full names. We now omit only "empty prefixes", i.e. roots, anonymous classes and repl qualifiers.
1 parent 3b71003 commit 273b184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
5454
}
5555

5656
override def fullNameString(sym: Symbol): String =
57-
if (isOmittablePrefix(sym.maybeOwner)) nameString(sym)
57+
if (isEmptyPrefix(sym.maybeOwner)) nameString(sym)
5858
else super.fullNameString(sym)
5959

6060
override protected def fullNameOwner(sym: Symbol) = {

0 commit comments

Comments
 (0)