File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,15 +96,15 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
96
96
97
97
override def toText (tp : Type ): Text = controlled {
98
98
def toTextTuple (args : List [Type ]): Text =
99
- " (" ~ toTextGlobal (args, " , " ) ~ " )"
99
+ " (" ~ Text (args.map(argText) , " , " ) ~ " )"
100
100
def toTextFunction (args : List [Type ]): Text =
101
101
changePrec(GlobalPrec ) {
102
102
val argStr : Text =
103
103
if (args.length == 2 && ! defn.isTupleType(args.head))
104
- atPrec(InfixPrec ) { toText (args.head) }
104
+ atPrec(InfixPrec ) { argText (args.head) }
105
105
else
106
106
toTextTuple(args.init)
107
- argStr ~ " => " ~ toText (args.last)
107
+ argStr ~ " => " ~ argText (args.last)
108
108
}
109
109
homogenize(tp) match {
110
110
case AppliedType (tycon, args) =>
You can’t perform that action at this time.
0 commit comments