diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-11-03 14:49:10 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-11-03 14:49:10 +0000 |
commit | f03c47f101aa39236b6eea2b94c1bca216b52cb5 (patch) | |
tree | 92d500d2cab35092579ad7bc2864ad0b3527899f /src/compiler/scala/tools/nsc/typechecker/Contexts.scala | |
parent | 8d006d8cba22f5c9e7008105e3ad36fc17d9dcea (diff) | |
download | scala-f03c47f101aa39236b6eea2b94c1bca216b52cb5.tar.gz scala-f03c47f101aa39236b6eea2b94c1bca216b52cb5.tar.bz2 scala-f03c47f101aa39236b6eea2b94c1bca216b52cb5.zip |
Speeding up EQ for Contexts when comparing to N...
Speeding up EQ for Contexts when comparing to NoContext.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Contexts.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala index 156b9932cb..b33caf6d2a 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala @@ -99,6 +99,7 @@ trait Contexts requires Analyzer { override def equals(that : Any) = that match { case that if (super.equals(that)) => true + case NoContext => false case that : Context => val a0 = if (tree == null) tree == that.tree else tree equalsStructure that.tree; val a1 = owner == that.owner; |