Skip to content

Commit 32514aa

Browse files
committed
SI-8578 Avoid another potential fresh name clash
No test case for this one, but see the preceding commit for the class of bug that I'm trying to avoid.
1 parent f13c07f commit 32514aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scala/tools/nsc/transform/Delambdafy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ abstract class Delambdafy extends Transform with TypingTransformers with ast.Tre
132132
}
133133
val params = ((optionSymbol(thisProxy) map {proxy:Symbol => ValDef(proxy)}) ++ (target.paramss.flatten map ValDef.apply)).toList
134134

135-
val methSym = oldClass.newMethod(unit.freshTermName(nme.accessor.toString()), target.pos, FINAL | BRIDGE | SYNTHETIC | PROTECTED | STATIC)
135+
val methSym = oldClass.newMethod(unit.freshTermName(nme.accessor.toString() + "$"), target.pos, FINAL | BRIDGE | SYNTHETIC | PROTECTED | STATIC)
136136

137137
val paramSyms = params map {param => methSym.newSyntheticValueParam(param.symbol.tpe, param.name) }
138138

0 commit comments

Comments
 (0)