@@ -130,6 +130,9 @@ object ProtoTypes {
130
130
case that : IgnoredProto => ignored eq that.ignored
131
131
case _ => false
132
132
133
+ // equals comes from case class; no need to redefine
134
+ end IgnoredProto
135
+
133
136
final class CachedIgnoredProto (ignored : Type ) extends IgnoredProto (ignored)
134
137
135
138
object IgnoredProto :
@@ -197,12 +200,17 @@ object ProtoTypes {
197
200
def fold [T ](x : T , ta : TypeAccumulator [T ])(using Context ): T = ta(x, memberProto)
198
201
199
202
override def deepenProto (using Context ): SelectionProto = derivedSelectionProto(name, memberProto.deepenProto, compat)
200
-
201
203
override def computeHash (bs : Hashable .Binders ): Int = {
202
204
val delta = (if (compat eq NoViewsAllowed ) 1 else 0 ) | (if (privateOK) 2 else 0 )
203
205
addDelta(doHash(bs, name, memberProto), delta)
204
206
}
205
207
208
+ override def equals (that : Any ): Boolean = that match
209
+ case that : SelectionProto =>
210
+ (name eq that.name) && memberProto.equals(that.memberProto) && (compat eq that.compat) && (privateOK == that.privateOK)
211
+ case _ =>
212
+ false
213
+
206
214
override def eql (that : Type ): Boolean = that match {
207
215
case that : SelectionProto =>
208
216
(name eq that.name) && (memberProto eq that.memberProto) && (compat eq that.compat) && (privateOK == that.privateOK)
@@ -461,6 +469,7 @@ object ProtoTypes {
461
469
override def eql (that : Type ): Boolean = that match
462
470
case that : ViewProto => (argType eq that.argType) && (resType eq that.resType)
463
471
case _ => false
472
+ // equals comes from case class; no need to redefine
464
473
}
465
474
466
475
object ViewProto {
0 commit comments