Skip to content

Commit 4d2442b

Browse files
Fix scala-library Sorted{Set,Map}FactoryDefaults self types
1 parent b1067d9 commit 4d2442b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/collection/Iterable.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ trait EvidenceIterableFactoryDefaults[+A, +CC[x] <: IterableOps[x, CC, CC[x]], E
991991
trait SortedSetFactoryDefaults[+A,
992992
+CC[X] <: SortedSet[X] with SortedSetOps[X, CC, CC[X]],
993993
+WithFilterCC[x] <: IterableOps[x, WithFilterCC, WithFilterCC[x]] with Set[x]] extends SortedSetOps[A @uncheckedVariance, CC, CC[A @uncheckedVariance]] {
994-
self: IterableOps[A, WithFilterCC, _] =>
994+
self: IterableOps[A, WithFilterCC, CC[A @uncheckedVariance]] =>
995995

996996
override protected def fromSpecific(coll: IterableOnce[A @uncheckedVariance]^): CC[A @uncheckedVariance] = sortedIterableFactory.from(coll)(using ordering)
997997
override protected def newSpecificBuilder: mutable.Builder[A @uncheckedVariance, CC[A @uncheckedVariance]] = sortedIterableFactory.newBuilder[A](using ordering)
@@ -1046,7 +1046,7 @@ trait SortedMapFactoryDefaults[K, +V,
10461046
+CC[x, y] <: Map[x, y] with SortedMapOps[x, y, CC, CC[x, y]] with UnsortedCC[x, y],
10471047
+WithFilterCC[x] <: IterableOps[x, WithFilterCC, WithFilterCC[x]] with Iterable[x],
10481048
+UnsortedCC[x, y] <: Map[x, y]] extends SortedMapOps[K, V, CC, CC[K, V @uncheckedVariance]] with MapOps[K, V, UnsortedCC, CC[K, V @uncheckedVariance]] with caps.Pure {
1049-
self: IterableOps[(K, V), WithFilterCC, _] =>
1049+
self: IterableOps[(K, V), WithFilterCC, CC[K, V @uncheckedVariance]] =>
10501050

10511051
override def empty: CC[K, V @uncheckedVariance] = sortedMapFactory.empty(using ordering)
10521052
override protected def fromSpecific(coll: IterableOnce[(K, V @uncheckedVariance)]^): CC[K, V @uncheckedVariance] = sortedMapFactory.from(coll)(using ordering)

0 commit comments

Comments
 (0)