File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/core 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1396,7 +1396,7 @@ object Types {
1396
1396
1397
1397
/** Equality used for hash-consing; uses `eq` on all recursive invocations.
1398
1398
*/
1399
- def eql (that : Type ): Boolean = this .iso (that, null )
1399
+ def eql (that : Type ): Boolean = this .equals (that)
1400
1400
1401
1401
/** customized hash code of this type.
1402
1402
* NotCached for uncached types. Cached types
@@ -4273,8 +4273,8 @@ object Types {
4273
4273
(implicit ctx : Context ) extends TypeAccumulator [mutable.Set [NamedType ]] {
4274
4274
override def stopAtStatic = false
4275
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
4276
+ val seen = new util.HashSet [Type ](64 ) {
4277
+ override def hash (x : Type ): Int = System .identityHashCode(x)
4278
4278
override def isEqual (x : Type , y : Type ) = x.eq(y)
4279
4279
}
4280
4280
def apply (x : mutable.Set [NamedType ], tp : Type ): mutable.Set [NamedType ] =
You can’t perform that action at this time.
0 commit comments