@@ -134,7 +134,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
134
134
case tp : TypeType =>
135
135
toTextRHS(tp)
136
136
case tp : TermRef
137
- if ! tp.denotationIsCurrent && ! homogenizedView || // always print underyling when testing picklers
137
+ if ! tp.denotationIsCurrent && ! homogenizedView || // always print underlying when testing picklers
138
138
tp.symbol.is(Module ) ||
139
139
tp.symbol.name.isImportName =>
140
140
toTextRef(tp) ~ " .type"
@@ -183,7 +183,9 @@ class PlainPrinter(_ctx: Context) extends Printer {
183
183
toTextGlobal(tp.resultType)
184
184
}
185
185
case tp : TypeParamRef =>
186
- TypeParamRefNameString (tp) ~ lambdaHash(tp.binder)
186
+ ParamRefNameString (tp) ~ lambdaHash(tp.binder)
187
+ case tp : TermParamRef =>
188
+ ParamRefNameString (tp) ~ " .type"
187
189
case AnnotatedType (tpe, annot) =>
188
190
toTextLocal(tpe) ~ " " ~ toText(annot)
189
191
case HKApply (tycon, args) =>
@@ -206,10 +208,10 @@ class PlainPrinter(_ctx: Context) extends Printer {
206
208
}
207
209
}.close
208
210
209
- protected def TypeParamRefNameString (name : TypeName ): String = name.toString
211
+ protected def ParamRefNameString (name : Name ): String = name.toString
210
212
211
- protected def TypeParamRefNameString (param : TypeParamRef ): String =
212
- TypeParamRefNameString (param.binder.paramNames(param.paramNum))
213
+ protected def ParamRefNameString (param : ParamRef ): String =
214
+ ParamRefNameString (param.binder.paramNames(param.paramNum))
213
215
214
216
/** The name of the symbol without a unique id. Under refined printing,
215
217
* the decoded original name.
0 commit comments