diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-03-21 09:47:27 +0100 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-03-23 11:03:02 +0100 |
commit | 8279a730f02161b2cb078f0c7aa9856a891ca86a (patch) | |
tree | 9533dffbb5cbfd748ced54715d7d30a7575ecf51 /src/compiler/scala/tools/nsc/transform/TailCalls.scala | |
parent | 8f42361d71d11e9522052dcb5d9be020df7e5cc5 (diff) | |
download | scala-8279a730f02161b2cb078f0c7aa9856a891ca86a.tar.gz scala-8279a730f02161b2cb078f0c7aa9856a891ca86a.tar.bz2 scala-8279a730f02161b2cb078f0c7aa9856a891ca86a.zip |
[vpm] typeMatchAnonFun improvements
need to set up symbols with approximated info for the method and its owner
before typing the method's body; when the body has been typed,
we know what its result type will be, so update info of class and method to reflect that
better detection of synthesized matches: annotate selector rather than relying on symbol info
encapsulate CASE | SYNTHETIC flags (setting and querying)
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/TailCalls.scala')
-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 6ebecb02c6..ef76fe1b1c 100644 --- a/src/compiler/scala/tools/nsc/transform/TailCalls.scala +++ b/src/compiler/scala/tools/nsc/transform/TailCalls.scala @@ -36,7 +36,7 @@ abstract class TailCalls extends Transform { } } - private def hasSynthCaseSymbol(t: Tree) = (t.symbol ne null) && (t.symbol hasFlag (Flags.CASE | Flags.SYNTHETIC)) + import gen.hasSynthCaseSymbol /** * A Tail Call Transformer |