From 71288c3d5ead2e7acf682555ff0debab8a7cc393 Mon Sep 17 00:00:00 2001 From: buraq Date: Tue, 28 Oct 2003 14:41:56 +0000 Subject: fixed hashing (hasing TypeTerms now using Type.... fixed hashing (hasing TypeTerms now using Type.hashCode) --- sources/scalac/transformer/matching/Label.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sources') 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: -- cgit v1.2.3