diff options
author | buraq <buraq@epfl.ch> | 2003-10-30 13:03:59 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2003-10-30 13:03:59 +0000 |
commit | 29f2b9e84c3568a5644a78237be63918977db227 (patch) | |
tree | c3f0cb4ae94d5980da151748f4d7e0ccf2138822 /sources | |
parent | 4430371143989edfefef7ccac71dcdf2759074d0 (diff) | |
download | scala-29f2b9e84c3568a5644a78237be63918977db227.tar.gz scala-29f2b9e84c3568a5644a78237be63918977db227.tar.bz2 scala-29f2b9e84c3568a5644a78237be63918977db227.zip |
added handling of Typed nodes to isSequenceValued
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/ast/TreeInfo.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/scalac/ast/TreeInfo.java b/sources/scalac/ast/TreeInfo.java index a7a7e6de59..81c97a7e73 100644 --- a/sources/scalac/ast/TreeInfo.java +++ b/sources/scalac/ast/TreeInfo.java @@ -219,12 +219,12 @@ public class TreeInfo { return true; } return false; - case Apply( _, _ ): - case Literal( _ ): - return false; case Ident(Name n): // if Ident is a recursive var, then true return recVars.contains( tree.symbol() ); + case Apply( _, _ ): + case Literal( _ ): case Select(_,_): + case Typed(_,_): return false; default: throw new scalac.ApplicationError("Unexpected pattern "+tree.getClass()); |