Skip to content

Commit e77868c

Browse files
committed
-Ytest-pickler: do not avoid forcing denot of TermRef
1 parent c6fa1a4 commit e77868c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
129129
homogenize(tp) match {
130130
case tp: TypeType =>
131131
toTextRHS(tp)
132-
case tp: TermRef if !tp.denotationIsCurrent || tp.symbol.is(Module) || tp.symbol.name.isImportName =>
132+
case tp: TermRef if (!tp.denotationIsCurrent && !homogenizedView) || tp.symbol.is(Module) || tp.symbol.name.isImportName =>
133133
toTextRef(tp) ~ ".type"
134134
case tp: TermRef if tp.denot.isOverloaded =>
135135
"<overloaded " ~ toTextRef(tp) ~ ">"

0 commit comments

Comments
 (0)