diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-05-11 13:53:04 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-05-11 13:53:04 +0200 |
commit | 32514aac8b0f301be5bf451eb68f28e9bd7f929a (patch) | |
tree | 0c6e9de3fa8d2bc87bc2ba3491326bbb0ef3695e /src/compiler | |
parent | f13c07fe29d27bdc75423be6d3bf5458175bec90 (diff) | |
download | scala-32514aac8b0f301be5bf451eb68f28e9bd7f929a.tar.gz scala-32514aac8b0f301be5bf451eb68f28e9bd7f929a.tar.bz2 scala-32514aac8b0f301be5bf451eb68f28e9bd7f929a.zip |
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.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/Delambdafy.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Delambdafy.scala b/src/compiler/scala/tools/nsc/transform/Delambdafy.scala index d66e53edca..1f8ab7e887 100644 --- a/src/compiler/scala/tools/nsc/transform/Delambdafy.scala +++ b/src/compiler/scala/tools/nsc/transform/Delambdafy.scala @@ -132,7 +132,7 @@ abstract class Delambdafy extends Transform with TypingTransformers with ast.Tre } val params = ((optionSymbol(thisProxy) map {proxy:Symbol => ValDef(proxy)}) ++ (target.paramss.flatten map ValDef.apply)).toList - val methSym = oldClass.newMethod(unit.freshTermName(nme.accessor.toString()), target.pos, FINAL | BRIDGE | SYNTHETIC | PROTECTED | STATIC) + val methSym = oldClass.newMethod(unit.freshTermName(nme.accessor.toString() + "$"), target.pos, FINAL | BRIDGE | SYNTHETIC | PROTECTED | STATIC) val paramSyms = params map {param => methSym.newSyntheticValueParam(param.symbol.tpe, param.name) } |