diff options
author | Burak Emir <emir@epfl.ch> | 2005-12-15 13:18:04 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2005-12-15 13:18:04 +0000 |
commit | ca957c397d11078efee7acef230f9f0575f0f1e2 (patch) | |
tree | 8d6ba2af7b70de6b7500db5ce3ab7c2de5ee15a7 /sources | |
parent | 5a8157ab2661e5c384859c24c08559b2f0169081 (diff) | |
download | scala-ca957c397d11078efee7acef230f9f0575f0f1e2.tar.gz scala-ca957c397d11078efee7acef230f9f0575f0f1e2.tar.bz2 scala-ca957c397d11078efee7acef230f9f0575f0f1e2.zip |
fixed bug
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/tools/scalac/transformer/matching/PatternNode.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/scala/tools/scalac/transformer/matching/PatternNode.scala b/sources/scala/tools/scalac/transformer/matching/PatternNode.scala index e42ea061a8..f6a80be95c 100644 --- a/sources/scala/tools/scalac/transformer/matching/PatternNode.scala +++ b/sources/scala/tools/scalac/transformer/matching/PatternNode.scala @@ -171,12 +171,12 @@ package scala.tools.scalac.transformer.matching { q match { case VariablePat(other) => val treesym = tree match { - case _:Tree.Ident => tree.symbol(); - case _:Tree.Apply => TreeInfo.methSymbol( tree ); + case _: Tree.Apply => TreeInfo.methSymbol( tree ); + case _ => tree.symbol() } val othersym = tree match { - case _:Tree.Ident => tree.symbol(); - case _:Tree.Apply => TreeInfo.methSymbol( tree ); + case _: Tree.Apply => TreeInfo.methSymbol( other ); + case _ => other.symbol() } /* Console.println("VPat, getc = "+tree.getClass()); |