Skip to content

Commit 23b3839

Browse files
committed
Tweak to prefix printing
Don't leave out package prefixes under homogenizedView. We want to see them to make sure they are inserted in the same way before and after pickling.
1 parent 2eb9c31 commit 23b3839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
109109
if (isOmittable(tp.cls)) return ""
110110
case tp @ TermRef(pre, _) =>
111111
val sym = tp.symbol
112-
if (sym.isPackageObject) return toTextPrefix(pre)
112+
if (sym.isPackageObject && !homogenizedView) return toTextPrefix(pre)
113113
if (isOmittable(sym)) return ""
114114
case _ =>
115115
}

0 commit comments

Comments
 (0)