Skip to content

Commit f791a52

Browse files
committed
Avoid duplicating parameter names
Avoid duplicating parameter names in derivations of n-ary type classes
1 parent a9ef28c commit f791a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Deriving.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ trait Deriving { this: Typer =>
193193
if (nparams == 0) Nil
194194
else if (nparams == 1) tparam :: Nil
195195
else typeClass.typeParams.map(tcparam =>
196-
tparam.copy(name = s"${tparam.name}_${tcparam.name}".toTypeName)
196+
tparam.copy(name = s"${tparam.name}_$$_${tcparam.name}".toTypeName)
197197
.asInstanceOf[TypeSymbol])
198198
}
199199
val firstKindedParamss = clsParamss.filter {

0 commit comments

Comments
 (0)