diff options
author | Martin Odersky <odersky@gmail.com> | 2008-05-19 14:55:51 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-05-19 14:55:51 +0000 |
commit | 7340a8f64b49b6f4724c08675f6477ac379ab82f (patch) | |
tree | edad6041fd742e0beb897be92130513d72ef75b8 /src | |
parent | f2d0746c8a1bb98c483a3ebccf7a575d5b677e60 (diff) | |
download | scala-7340a8f64b49b6f4724c08675f6477ac379ab82f.tar.gz scala-7340a8f64b49b6f4724c08675f6477ac379ab82f.tar.bz2 scala-7340a8f64b49b6f4724c08675f6477ac379ab82f.zip |
fixed problem Lukas had when flatten is skipped
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/LambdaLift.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/LambdaLift.scala b/src/compiler/scala/tools/nsc/transform/LambdaLift.scala index 84b0e5bb24..38be297d4c 100644 --- a/src/compiler/scala/tools/nsc/transform/LambdaLift.scala +++ b/src/compiler/scala/tools/nsc/transform/LambdaLift.scala @@ -248,7 +248,8 @@ abstract class LambdaLift extends InfoTransform { if (sym.isAnonymousFunction && sym.owner.isMethod) sym.name.toString() + "$" + sym.owner.name.toString() + "$" else sym.name.toString() + "$" - sym.name = unit.fresh.newName(sym.pos, base) + val fresh = unit.fresh.newName(sym.pos, base) + sym.name = if (sym.name.isTypeName) fresh.toTypeName else fresh if (settings.debug.value) log("renamed: " + sym.name) } |