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 3e0a60d commit d0d6455Copy full SHA for d0d6455
compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -597,6 +597,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
597
changePrec(GlobalPrec) {
598
keywordStr("try ") ~ toText(expr) ~ " " ~ keywordStr("catch") ~ " {" ~ toText(handler) ~ "}" ~ optText(finalizer)(keywordStr(" finally ") ~ _)
599
}
600
+ case Quote(tree) =>
601
+ if (tree.isType) "'[" ~ toTextGlobal(tree) ~ "]" else "'(" ~ toTextGlobal(tree) ~ ")"
602
case Thicket(trees) =>
603
"Thicket {" ~~ toTextGlobal(trees, "\n") ~~ "}"
604
case _ =>
0 commit comments