@@ -147,17 +147,17 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
147
147
def toTextTuple (args : List [Type ]): Text =
148
148
" (" ~ argsText(args) ~ " )"
149
149
150
- def toTextFunction (args : List [Type ], isGiven : Boolean , isErased : List [ Boolean ], isPure : Boolean ): Text =
150
+ def toTextFunction (args : List [Type ], isGiven : Boolean , isPure : Boolean ): Text =
151
151
changePrec(GlobalPrec ) {
152
152
val argStr : Text =
153
153
if args.length == 2
154
154
&& ! defn.isTupleNType(args.head)
155
155
&& ! isGiven
156
156
then
157
- atPrec(InfixPrec ) { argText(args.head, isErased.headOption.getOrElse( false ) ) }
157
+ atPrec(InfixPrec ) { argText(args.head) }
158
158
else
159
159
" ("
160
- ~ argsText(args.init, isErased )
160
+ ~ argsText(args.init)
161
161
~ " )"
162
162
argStr ~ " " ~ arrow(isGiven, isPure) ~ " " ~ argText(args.last, false )
163
163
}
@@ -223,7 +223,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
223
223
if tycon.isRepeatedParam then toTextLocal(args.head) ~ " *"
224
224
else if tp.isConvertibleParam then " into " ~ toText(args.head)
225
225
else if defn.isFunctionSymbol(tsym) then
226
- toTextFunction(args, tsym.name.isContextFunction, List (tsym.name.isErasedFunction) /* TODO @natsukagami fix this */ ,
226
+ toTextFunction(args, tsym.name.isContextFunction,
227
227
isPure = Feature .pureFunsEnabled && ! tsym.name.isImpureFunction)
228
228
else if isInfixType(tp) then
229
229
val l :: r :: Nil = args : @ unchecked
0 commit comments