Skip to content

Commit 4aceaaf

Browse files
committed
Ignore LazyRefs in Tasty pickling comparisons
This came up when tasty-checking Eq.scala.
1 parent 88a18e5 commit 4aceaaf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
5151
case tp @ TypeRef(_, tpnme.hkApply) =>
5252
val tp1 = tp.reduceProjection
5353
if (tp1 eq tp) tp else homogenize(tp1)
54+
case tp: LazyRef =>
55+
homogenize(tp.ref)
5456
case _ =>
5557
tp
5658
}

0 commit comments

Comments
 (0)