File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,16 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
105
105
106
106
override def toTextPrefix (tp : Type ): Text = controlled {
107
107
def isOmittable (sym : Symbol ) =
108
- if (printDebug) false
109
- else if (homogenizedView) isEmptyPrefix(sym) // drop <root> and anonymous classes, but not scala, Predef.
108
+ if printDebug then false
109
+ else if homogenizedView then isEmptyPrefix(sym) // drop <root> and anonymous classes, but not scala, Predef.
110
+ else if sym.isPackageObject then isOmittablePrefix(sym.owner)
110
111
else isOmittablePrefix(sym)
111
112
tp match {
112
113
case tp : ThisType if isOmittable(tp.cls) =>
113
114
" "
114
115
case tp @ TermRef (pre, _) =>
115
116
val sym = tp.symbol
116
- if ( sym.isPackageObject && ! homogenizedView) toTextPrefix(pre)
117
+ if sym.isPackageObject && ! homogenizedView && ! printDebug then toTextPrefix(pre)
117
118
else if (isOmittable(sym)) " "
118
119
else super .toTextPrefix(tp)
119
120
case _ => super .toTextPrefix(tp)
Original file line number Diff line number Diff line change 4
4
| value idnt1 is not a member of B.
5
5
| An extension method was tried, but could not be fully constructed:
6
6
|
7
- | i7056$package. given_T1_T[T](given_PartialId_B).idnt1()
7
+ | given_T1_T[T](given_PartialId_B).idnt1()
You can’t perform that action at this time.
0 commit comments