diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-04-28 09:37:03 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-04-28 09:37:03 +0000 |
commit | 4f5a598284609a094255b08e9887b61417a6ce68 (patch) | |
tree | 853671c5d4b7894c5d9f301a22a5fa7ae3e55286 | |
parent | fe0a2ac4c3b393cc3684cf66a4de7c85a29d68fd (diff) | |
download | scala-4f5a598284609a094255b08e9887b61417a6ce68.tar.gz scala-4f5a598284609a094255b08e9887b61417a6ce68.tar.bz2 scala-4f5a598284609a094255b08e9887b61417a6ce68.zip |
no inlining on msil.
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/TailCalls.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/TailCalls.scala b/src/compiler/scala/tools/nsc/transform/TailCalls.scala index 0ec90f142b..9fff8534d3 100644 --- a/src/compiler/scala/tools/nsc/transform/TailCalls.scala +++ b/src/compiler/scala/tools/nsc/transform/TailCalls.scala @@ -203,7 +203,7 @@ abstract class TailCalls extends Transform newCtx.tailPos = true val isEligible = newCtx.currentMethod.isEffectivelyFinal - val isMandatory = dd.symbol hasAnnotation TailrecClass // @tailrec annotation indicates mandatory transformation + val isMandatory = dd.symbol.hasAnnotation(TailrecClass) && !forMSIL // @tailrec annotation indicates mandatory transformation if (isEligible) { newCtx.tparams = Nil |