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.
2 parents a193d5a + fe7d2c1 commit e61eebdCopy full SHA for e61eebd
library/src/scala/collection/immutable/SortedSet.scala
@@ -31,7 +31,7 @@ trait SortedSet[A] extends Set[A] with scala.collection.SortedSet[A] with Sorted
31
32
override def equals(that: Any): Boolean = that match {
33
case _ if this eq that.asInstanceOf[AnyRef] => true
34
- case ss: SortedSet[_] =>
+ case ss: SortedSet[_] if ss.ordering == this.ordering =>
35
(ss canEqual this) &&
36
(this.size == ss.size) && {
37
val i1 = this.iterator
0 commit comments