File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/printing
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -556,9 +556,9 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
556
556
case TypeBoundsTree (lo, hi, alias) =>
557
557
if (lo eq hi) && alias.isEmpty then optText(lo)(" = " ~ _)
558
558
else optText(lo)(" >: " ~ _) ~ optText(hi)(" <: " ~ _) ~ optText(alias)(" = " ~ _)
559
- case Bind (name, body) =>
559
+ case bind @ Bind (name, body) =>
560
560
keywordText(" given " ).provided(tree.symbol.isOneOf(GivenOrImplicit ) && ! homogenizedView) ~ // Used for scala.quoted.Type in quote patterns (not pickled)
561
- changePrec(InfixPrec ) { toText(name ) ~ " @ " ~ toText(body) }
561
+ changePrec(InfixPrec ) { nameIdText(bind ) ~ " @ " ~ toText(body) }
562
562
case Alternative (trees) =>
563
563
changePrec(OrPrec ) { toText(trees, " | " ) }
564
564
case UnApply (fun, implicits, patterns) =>
You can’t perform that action at this time.
0 commit comments