diff --git a/src/dotty/tools/dotc/printing/PlainPrinter.scala b/src/dotty/tools/dotc/printing/PlainPrinter.scala index e5f85d11b108..7acea3ba660a 100644 --- a/src/dotty/tools/dotc/printing/PlainPrinter.scala +++ b/src/dotty/tools/dotc/printing/PlainPrinter.scala @@ -104,7 +104,7 @@ class PlainPrinter(_ctx: Context) extends Printer { toTextPrefix(tp.prefix) ~ selectionString(tp) case tp: RefinedType => // return tp.toString // !!! DEBUG - val parent :: (refined: List[RefinedType]) = + val parent :: (refined: List[RefinedType @unchecked]) = refinementChain(tp).reverse toTextLocal(parent) ~ "{" ~ Text(refined map toTextRefinement, "; ").close ~ "}" case AndType(tp1, tp2) =>