We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b9d75c commit 01640caCopy full SHA for 01640ca
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -4273,8 +4273,8 @@ object Types {
4273
(implicit ctx: Context) extends TypeAccumulator[mutable.Set[NamedType]] {
4274
override def stopAtStatic = false
4275
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
+ val seen = new util.HashSet[Type](64) {
+ override def hash(x: Type): Int = System.identityHashCode(x)
4278
override def isEqual(x: Type, y: Type) = x.eq(y)
4279
}
4280
def apply(x: mutable.Set[NamedType], tp: Type): mutable.Set[NamedType] =
0 commit comments