Skip to content

Commit 5889821

Browse files
committed
Fixes #8287
1 parent 5cddbc7 commit 5889821

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ class PlainPrinter(_ctx: Context) extends Printer {
6161
homogenize(tp.info)
6262
case tp: LazyRef =>
6363
homogenize(tp.ref)
64-
case AppliedType(tycon, args) =>
65-
tycon.dealias.appliedTo(args)
64+
case tp@AppliedType(tycon, args) =>
65+
if (defn.isCompiletimeAppliedType(tycon.typeSymbol)) tp.tryCompiletimeConstantFold
66+
else tycon.dealias.appliedTo(args)
6667
case _ =>
6768
tp
6869
}

0 commit comments

Comments
 (0)