Skip to content

Commit 01640ca

Browse files
committed
Fix NamedPartsAccumulator
1 parent 4b9d75c commit 01640ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4273,8 +4273,8 @@ object Types {
42734273
(implicit ctx: Context) extends TypeAccumulator[mutable.Set[NamedType]] {
42744274
override def stopAtStatic = false
42754275
def maybeAdd(x: mutable.Set[NamedType], tp: NamedType) = if (p(tp)) x += tp else x
4276-
val seen = new util.HashSet[Type](7) {
4277-
override def hash(x: Type): Int = x.hash
4276+
val seen = new util.HashSet[Type](64) {
4277+
override def hash(x: Type): Int = System.identityHashCode(x)
42784278
override def isEqual(x: Type, y: Type) = x.eq(y)
42794279
}
42804280
def apply(x: mutable.Set[NamedType], tp: Type): mutable.Set[NamedType] =

0 commit comments

Comments
 (0)