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 5cddbc7 commit 5889821Copy full SHA for 5889821
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -61,8 +61,9 @@ class PlainPrinter(_ctx: Context) extends Printer {
61
homogenize(tp.info)
62
case tp: LazyRef =>
63
homogenize(tp.ref)
64
- case AppliedType(tycon, args) =>
65
- tycon.dealias.appliedTo(args)
+ case tp@AppliedType(tycon, args) =>
+ if (defn.isCompiletimeAppliedType(tycon.typeSymbol)) tp.tryCompiletimeConstantFold
66
+ else tycon.dealias.appliedTo(args)
67
case _ =>
68
tp
69
}
0 commit comments