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 8d8c03f commit d705133Copy full SHA for d705133
compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -563,7 +563,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
563
keywordStr("try ") ~ toText(expr) ~ " " ~ keywordStr("catch") ~ " {" ~ toText(handler) ~ "}" ~ optText(finalizer)(keywordStr(" finally ") ~ _)
564
}
565
case Quote(tree) =>
566
- if (tree.isType) "'[" ~ toTextGlobal(tree) ~ "]" else "'(" ~ toTextGlobal(tree) ~ ")"
+ if (tree.isType) keywordStr("'[") ~ toTextGlobal(tree) ~ keywordStr("]") else keywordStr("'{") ~ toTextGlobal(tree) ~ keywordStr("}")
567
case Thicket(trees) =>
568
"Thicket {" ~~ toTextGlobal(trees, "\n") ~~ "}"
569
case _ =>
0 commit comments