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 5eeee54 commit a8f7e6cCopy full SHA for a8f7e6c
src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -96,15 +96,15 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
96
97
override def toText(tp: Type): Text = controlled {
98
def toTextTuple(args: List[Type]): Text =
99
- "(" ~ toTextGlobal(args, ", ") ~ ")"
+ "(" ~ Text(args.map(argText), ", ") ~ ")"
100
def toTextFunction(args: List[Type]): Text =
101
changePrec(GlobalPrec) {
102
val argStr: Text =
103
if (args.length == 2 && !defn.isTupleType(args.head))
104
- atPrec(InfixPrec) { toText(args.head) }
+ atPrec(InfixPrec) { argText(args.head) }
105
else
106
toTextTuple(args.init)
107
- argStr ~ " => " ~ toText(args.last)
+ argStr ~ " => " ~ argText(args.last)
108
}
109
homogenize(tp) match {
110
case AppliedType(tycon, args) =>
0 commit comments