We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d503e8c commit 586fbcfCopy full SHA for 586fbcf
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -60,6 +60,10 @@ class PlainPrinter(_ctx: Context) extends Printer {
60
case tp @ AppliedType(tycon, args) =>
61
if (defn.isCompiletimeAppliedType(tycon.typeSymbol)) tp.tryCompiletimeConstantFold
62
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)
67
case _ =>
68
tp
69
}
0 commit comments