File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -350,6 +350,11 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
350350 keywordStr(" '{" ) ~ toTextGlobal(args, " , " ) ~ keywordStr(" }" )
351351 else if (! ctx.settings.YprintDebug .value && fun.hasType && fun.symbol == defn.InternalQuoted_exprSplice )
352352 keywordStr(" ${" ) ~ toTextGlobal(args, " , " ) ~ keywordStr(" }" )
353+ else if (tree.getAttachment(untpd.ApplyGiven ).isDefined && ! homogenizedView)
354+ changePrec(InfixPrec ) {
355+ toTextLocal(fun) ~ " given " ~
356+ (if (args.length == 1 ) toTextLocal(args.head) else " (" ~ toTextGlobal(args, " , " ) ~ " )" )
357+ }
353358 else
354359 toTextLocal(fun) ~ " (" ~ toTextGlobal(args, " , " ) ~ " )"
355360 case tree : TypeApply =>
You can’t perform that action at this time.
0 commit comments