Skip to content

Commit 0441af0

Browse files
Fix scala2-library-cc Sorted{Set,Map}FactoryDefaults self types
1 parent 9ee56c5 commit 0441af0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scala2-library-cc/src/scala/collection/Iterable.scala

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

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

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

0 commit comments

Comments
 (0)