Skip to content

Commit c26aa8f

Browse files
committed
Make printing package ids more robost
Crashed before when printers were turned on during test pickling mode.
1 parent d0625ab commit c26aa8f

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
@@ -262,7 +262,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
262262
}
263263

264264
def toTextPackageId(pid: Tree): Text =
265-
if (homogenizedView) toTextLocal(pid.tpe)
265+
if (homogenizedView && pid.hasType) toTextLocal(pid.tpe)
266266
else toTextLocal(pid)
267267

268268
var txt: Text = tree match {

0 commit comments

Comments
 (0)