Skip to content

Commit 586fbcf

Browse files
committed
Avoid a pickling diff in this PR
This is just a workaround, awaiting further discussion in the linked issue.
1 parent d503e8c commit 586fbcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ class PlainPrinter(_ctx: Context) extends Printer {
6060
case tp @ AppliedType(tycon, args) =>
6161
if (defn.isCompiletimeAppliedType(tycon.typeSymbol)) tp.tryCompiletimeConstantFold
6262
else tycon.dealias.appliedTo(args)
63+
// Workaround for https://github.com/lampepfl/dotty/issues/8988
64+
case tp @ AnnotatedType(underlying @ AnnotatedType(_, annot2), annot1)
65+
if (annot1.symbol eq defn.UncheckedVarianceAnnot) && (annot1.symbol eq annot2.symbol) =>
66+
homogenize(underlying)
6367
case _ =>
6468
tp
6569
}

0 commit comments

Comments
 (0)