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) {
350
350
keywordStr(" '{" ) ~ toTextGlobal(args, " , " ) ~ keywordStr(" }" )
351
351
else if (! ctx.settings.YprintDebug .value && fun.hasType && fun.symbol == defn.InternalQuoted_exprSplice )
352
352
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
+ }
353
358
else
354
359
toTextLocal(fun) ~ " (" ~ toTextGlobal(args, " , " ) ~ " )"
355
360
case tree : TypeApply =>
You can’t perform that action at this time.
0 commit comments