diff options
-rw-r--r-- | sources/scalac/transformer/matching/Label.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sources/scalac/transformer/matching/Label.java b/sources/scalac/transformer/matching/Label.java index 4c41f8a031..1759d67b16 100644 --- a/sources/scalac/transformer/matching/Label.java +++ b/sources/scalac/transformer/matching/Label.java @@ -2,6 +2,7 @@ package scalac.transformer.matching ; import scalac.ast.Tree ; import scalac.ast.TreeInfo ; +import scalac.symtab.Symbol ; import scalac.symtab.Type ; import Tree.Literal ; @@ -30,10 +31,10 @@ public class Label { return lit.value.hashCode(); case TreeLabel( Tree pat ): switch( pat ) { - case Apply( _, Tree[] args ): - return TreeInfo.methSymbol( pat ).hashCode() + args.hashCode(); // incorrect? + case Apply( Tree fun, Tree[] args ): + return pat.type().hashCode() + args.hashCode(); // incorrect? } - return pat.hashCode(); + return pat.hashCode(); case TypeLabel( Type type ): return type.hashCode(); default: |