diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2005-10-17 16:02:33 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2005-10-17 16:02:33 +0000 |
commit | c24210160e8eb8195d19f101b5692933fb79ff2f (patch) | |
tree | 374b9f06f6b089d1cd453cf1c32d3088bb5d1577 /sources | |
parent | 9cbac19bd6ea417b11c9a63ac3cec4c7055d4ef3 (diff) | |
download | scala-c24210160e8eb8195d19f101b5692933fb79ff2f.tar.gz scala-c24210160e8eb8195d19f101b5692933fb79ff2f.tar.bz2 scala-c24210160e8eb8195d19f101b5692933fb79ff2f.zip |
Fixed bug for poly methods.
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/tools/nsc/transform/TailCalls.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/scala/tools/nsc/transform/TailCalls.scala b/sources/scala/tools/nsc/transform/TailCalls.scala index 1a96619ef3..2a61685d00 100644 --- a/sources/scala/tools/nsc/transform/TailCalls.scala +++ b/sources/scala/tools/nsc/transform/TailCalls.scala @@ -94,7 +94,7 @@ abstract class TailCalls extends Transform override def toString(): String = { "" + currentMethod.name + " types: " + types + " tailPos: " + tailPos + - " accessed: " + accessed; + " accessed: " + accessed + "\nLabel: " + label + "\nLabel type: " + label.info; } } @@ -133,6 +133,8 @@ abstract class TailCalls extends Transform newCtx.currentMethod.tpe match { case PolyType(tparams, result) => newCtx.types = tparams map (s => s.tpe); + newCtx.label.setInfo(result); + case _ => ; } |