File tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4622,11 +4622,12 @@ object Types {
4622
4622
* Note that care is needed when creating them, since not all types need to be inhabited.
4623
4623
* A skolem is equal to itself and no other type.
4624
4624
*/
4625
- case class SkolemType (info : Type ) extends UncachedProxyType with ValueType with SingletonType {
4625
+ case class SkolemType (info : Type ) extends CachedProxyType with ValueType with SingletonType {
4626
4626
override def underlying (using Context ): Type = info
4627
4627
def derivedSkolemType (info : Type )(using Context ): SkolemType =
4628
4628
if (info eq this .info) this else SkolemType (info)
4629
- override def hashCode : Int = System .identityHashCode(this )
4629
+
4630
+ override def computeHash (bs : Binders ): Int = identityHash(bs)
4630
4631
override def equals (that : Any ): Boolean = this .eq(that.asInstanceOf [AnyRef ])
4631
4632
4632
4633
def withName (name : Name ): this .type = { myRepr = name; this }
You can’t perform that action at this time.
0 commit comments