Skip to content

Commit a7a4b8e

Browse files
committed
Print hashCode of type lambdas under -uniqid
That way we can trace where paramrefs come from.
1 parent 433541f commit a7a4b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
174174
def paramText(name: Name, bounds: TypeBounds): Text = name.toString ~ toText(bounds)
175175
changePrec(GlobalPrec) {
176176
"[" ~ Text((tp.paramNames, tp.paramInfos).zipped.map(paramText), ", ") ~
177-
"]" ~ (" => " provided !tp.resultType.isInstanceOf[MethodType]) ~
177+
"]" ~ lambdaHash(tp) ~ (" => " provided !tp.resultType.isInstanceOf[MethodType]) ~
178178
toTextGlobal(tp.resultType)
179179
}
180180
case tp: TypeParamRef =>

0 commit comments

Comments
 (0)