aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Hashable.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-11-17 17:52:56 +0100
committerMartin Odersky <odersky@gmail.com>2015-11-17 17:52:56 +0100
commit7a61c8693fd7f3431d5a80829a6a051151969122 (patch)
treed13b62eef709206fe43fa46ef4ea74e83ccdd95b /src/dotty/tools/dotc/core/Hashable.scala
parent199dca76a3a6771272a04b1cb717a4b8f04dd9a7 (diff)
downloaddotty-7a61c8693fd7f3431d5a80829a6a051151969122.tar.gz
dotty-7a61c8693fd7f3431d5a80829a6a051151969122.tar.bz2
dotty-7a61c8693fd7f3431d5a80829a6a051151969122.zip
Revert: Make hash codes on type more predictable.
getSimpleName crashes on some module names created by scalac. May help finding the partest issue. (reverted from commit c11646c40042404550eb983577c9e7096a40502a)
Diffstat (limited to 'src/dotty/tools/dotc/core/Hashable.scala')
-rw-r--r--src/dotty/tools/dotc/core/Hashable.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Hashable.scala b/src/dotty/tools/dotc/core/Hashable.scala
index 08309f5c8..6a64f8655 100644
--- a/src/dotty/tools/dotc/core/Hashable.scala
+++ b/src/dotty/tools/dotc/core/Hashable.scala
@@ -28,7 +28,7 @@ object Hashable {
trait Hashable {
import Hashable._
- protected def hashSeed: Int = getClass.getSimpleName.hashCode
+ protected def hashSeed: Int = getClass.hashCode
protected final def finishHash(hashCode: Int, arity: Int): Int =
avoidNotCached(hashing.finalizeHash(hashCode, arity))