From c11646c40042404550eb983577c9e7096a40502a Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Tue, 10 Nov 2015 16:42:27 +0100 Subject: Make hash codes on type more predictable. May help finding the partest issue. --- src/dotty/tools/dotc/core/Uniques.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/Uniques.scala') diff --git a/src/dotty/tools/dotc/core/Uniques.scala b/src/dotty/tools/dotc/core/Uniques.scala index b00508d60..0571100a3 100644 --- a/src/dotty/tools/dotc/core/Uniques.scala +++ b/src/dotty/tools/dotc/core/Uniques.scala @@ -92,7 +92,7 @@ object Uniques { } final class RefinedUniques extends HashSet[RefinedType](Config.initialUniquesCapacity) with Hashable { - override val hashSeed = classOf[CachedRefinedType].hashCode // some types start life as CachedRefinedTypes, need to have same hash seed + override val hashSeed = "CachedRefinedType".hashCode // some types start life as CachedRefinedTypes, need to have same hash seed override def hash(x: RefinedType): Int = x.hash private def findPrevious(h: Int, parent: Type, refinedName: Name, refinedInfo: Type): RefinedType = { -- cgit v1.2.3