File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
146
146
else
147
147
toTextPrefix(tp.prefix) ~ selectionString(tp)
148
148
case tp: TermParamRef =>
149
- ParamRefNameString(tp) ~ ".type"
149
+ ParamRefNameString(tp) ~ lambdaHash(tp.binder) ~ ".type"
150
150
case tp: TypeParamRef =>
151
151
ParamRefNameString(tp) ~ lambdaHash(tp.binder)
152
152
case tp: SingletonType =>
@@ -237,9 +237,10 @@ class PlainPrinter(_ctx: Context) extends Printer {
237
237
def toTextSingleton(tp: SingletonType): Text =
238
238
"(" ~ toTextRef(tp) ~ " : " ~ toTextGlobal(tp.underlying) ~ ")"
239
239
240
- protected def paramsText(tp: LambdaType): Text = {
241
- def paramText(name: Name, tp: Type) = toText(name) ~ toTextRHS(tp)
242
- Text(tp.paramNames.lazyZip(tp.paramInfos).map(paramText), ", ")
240
+ protected def paramsText(lam: LambdaType): Text = {
241
+ def paramText(name: Name, tp: Type) =
242
+ toText(name) ~ lambdaHash(lam) ~ toTextRHS(tp)
243
+ Text(lam.paramNames.lazyZip(lam.paramInfos).map(paramText), ", ")
243
244
}
244
245
245
246
protected def ParamRefNameString(name: Name): String = name.toString
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
212
212
toTextInfixType(tpnme.raw.BAR, tp1, tp2) { toText(tpnme.raw.BAR) }
213
213
case EtaExpansion(tycon) if !printDebug =>
214
214
toText(tycon)
215
- case tp: RefinedType if defn.isFunctionType(tp) =>
215
+ case tp: RefinedType if defn.isFunctionType(tp) && !printDebug =>
216
216
toTextDependentFunction(tp.refinedInfo.asInstanceOf[MethodType])
217
217
case tp: TypeRef =>
218
218
if (tp.symbol.isAnonymousClass && !ctx.settings.uniqid.value)
You can’t perform that action at this time.
0 commit comments