Skip to content

Commit 5931804

Browse files
committed
chore: add transparent modifer to already assumed transparent types
1 parent 7a75a09 commit 5931804

37 files changed

+46
-46
lines changed

library/src/scala/AnyVal.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ package scala
5353
* still must allocate a value class instance at runtime. These limitations and circumstances are
5454
* explained in greater detail in the [[https://docs.scala-lang.org/overviews/core/value-classes.html Value Classes and Universal Traits]].
5555
*/
56-
abstract class AnyVal extends Any {
56+
transparent abstract class AnyVal extends Any {
5757
def getClass(): Class[_ <: AnyVal] = null
5858
}

library/src/scala/Product.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package scala
1717
* their subclasses [[scala.Tuple1]] through [[scala.Tuple22]]. In addition,
1818
* all case classes implement `Product` with synthetically generated methods.
1919
*/
20-
trait Product extends Any with Equals {
20+
transparent trait Product extends Any with Equals {
2121
/** The size of this product.
2222
* @return for a product `A(x,,1,,, ..., x,,k,,)`, returns `k`
2323
*/

library/src/scala/collection/BitSet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ object BitSet extends SpecificIterableFactory[Int, BitSet] {
8282
}
8383

8484
/** Base implementation type of bitsets */
85-
trait BitSetOps[+C <: BitSet with BitSetOps[C]]
85+
transparent trait BitSetOps[+C <: BitSet with BitSetOps[C]]
8686
extends SortedSetOps[Int, SortedSet, C] { self =>
8787
import BitSetOps._
8888

library/src/scala/collection/IndexedSeq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait IndexedSeq[+A] extends Seq[A]
3232
object IndexedSeq extends SeqFactory.Delegate[IndexedSeq](immutable.IndexedSeq)
3333

3434
/** Base trait for indexed Seq operations */
35-
trait IndexedSeqOps[+A, +CC[_], +C] extends Any with SeqOps[A, CC, C] { self =>
35+
transparent trait IndexedSeqOps[+A, +CC[_], +C] extends Any with SeqOps[A, CC, C] { self =>
3636

3737
def iterator: Iterator[A] = view.iterator
3838

library/src/scala/collection/Iterable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ trait Iterable[+A] extends IterableOnce[A]
131131
* The order in which operations are performed on elements is unspecified
132132
* and may be nondeterministic.
133133
*/
134-
trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with IterableOnceOps[A, CC, C] {
134+
transparent trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with IterableOnceOps[A, CC, C] {
135135
/**
136136
* @return This collection as an `Iterable[A]`. No new collection will be built if `this` is already an `Iterable[A]`.
137137
*/

library/src/scala/collection/IterableOnce.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ object IterableOnce {
320320
* @define exactlyOnce
321321
* Each element appears exactly once in the computation.
322322
*/
323-
trait IterableOnceOps[+A, +CC[_], +C] extends Any { this: IterableOnce[A] =>
323+
transparent trait IterableOnceOps[+A, +CC[_], +C] extends Any { this: IterableOnce[A] =>
324324
/////////////////////////////////////////////////////////////// Abstract methods that must be implemented
325325

326326
/** Produces a $coll containing cumulative results of applying the

library/src/scala/collection/LinearSeq.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait LinearSeq[+A] extends Seq[A]
3232
object LinearSeq extends SeqFactory.Delegate[LinearSeq](immutable.LinearSeq)
3333

3434
/** Base trait for linear Seq operations */
35-
trait LinearSeqOps[+A, +CC[X] <: LinearSeq[X], +C <: LinearSeq[A] with LinearSeqOps[A, CC, C]] extends Any with SeqOps[A, CC, C] {
35+
transparent trait LinearSeqOps[+A, +CC[X] <: LinearSeq[X], +C <: LinearSeq[A] with LinearSeqOps[A, CC, C]] extends Any with SeqOps[A, CC, C] {
3636

3737
/** @inheritdoc
3838
*
@@ -259,7 +259,7 @@ trait LinearSeqOps[+A, +CC[X] <: LinearSeq[X], +C <: LinearSeq[A] with LinearSeq
259259
}
260260
}
261261

262-
trait StrictOptimizedLinearSeqOps[+A, +CC[X] <: LinearSeq[X], +C <: LinearSeq[A] with StrictOptimizedLinearSeqOps[A, CC, C]] extends Any with LinearSeqOps[A, CC, C] with StrictOptimizedSeqOps[A, CC, C] {
262+
transparent trait StrictOptimizedLinearSeqOps[+A, +CC[X] <: LinearSeq[X], +C <: LinearSeq[A] with StrictOptimizedLinearSeqOps[A, CC, C]] extends Any with LinearSeqOps[A, CC, C] with StrictOptimizedSeqOps[A, CC, C] {
263263
// A more efficient iterator implementation than the default LinearSeqIterator
264264
override def iterator: Iterator[A] = new AbstractIterator[A] {
265265
private[this] var current = StrictOptimizedLinearSeqOps.this

library/src/scala/collection/Map.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ trait Map[K, +V]
9898
*/
9999
// Note: the upper bound constraint on CC is useful only to
100100
// erase CC to IterableOps instead of Object
101-
trait MapOps[K, +V, +CC[_, _] <: IterableOps[_, AnyConstr, _], +C]
101+
transparent trait MapOps[K, +V, +CC[_, _] <: IterableOps[_, AnyConstr, _], +C]
102102
extends IterableOps[(K, V), Iterable, C]
103103
with PartialFunction[K, V] {
104104

library/src/scala/collection/Seq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ object Seq extends SeqFactory.Delegate[Seq](immutable.Seq)
7474
* @define coll sequence
7575
* @define Coll `Seq`
7676
*/
77-
trait SeqOps[+A, +CC[_], +C] extends Any
77+
transparent trait SeqOps[+A, +CC[_], +C] extends Any
7878
with IterableOps[A, CC, C] { self =>
7979

8080
override def view: SeqView[A] = new SeqView.Id[A](this)

library/src/scala/collection/Set.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ trait Set[A]
8585
* @define coll set
8686
* @define Coll `Set`
8787
*/
88-
trait SetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
88+
transparent trait SetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
8989
extends IterableOps[A, CC, C]
9090
with (A => Boolean) {
9191

library/src/scala/collection/SortedMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ trait SortedMap[K, +V]
4747
}
4848
}
4949

50-
trait SortedMapOps[K, +V, +CC[X, Y] <: Map[X, Y] with SortedMapOps[X, Y, CC, _], +C <: SortedMapOps[K, V, CC, C]]
50+
transparent trait SortedMapOps[K, +V, +CC[X, Y] <: Map[X, Y] with SortedMapOps[X, Y, CC, _], +C <: SortedMapOps[K, V, CC, C]]
5151
extends MapOps[K, V, Map, C]
5252
with SortedOps[K, C] {
5353

library/src/scala/collection/SortedOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ package scala.collection
1414

1515

1616
/** Base trait for sorted collections */
17-
trait SortedOps[A, +C] {
17+
transparent trait SortedOps[A, +C] {
1818

1919
def ordering: Ordering[A]
2020

library/src/scala/collection/SortedSet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ trait SortedSet[A] extends Set[A]
4545

4646
}
4747

48-
trait SortedSetOps[A, +CC[X] <: SortedSet[X], +C <: SortedSetOps[A, CC, C]]
48+
transparent trait SortedSetOps[A, +CC[X] <: SortedSet[X], +C <: SortedSetOps[A, CC, C]]
4949
extends SetOps[A, Set, C]
5050
with SortedOps[A, C] {
5151

library/src/scala/collection/StrictOptimizedIterableOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import scala.runtime.Statics
2424
* @tparam CC Collection type constructor
2525
* @tparam C Collection type
2626
*/
27-
trait StrictOptimizedIterableOps[+A, +CC[_], +C]
27+
transparent trait StrictOptimizedIterableOps[+A, +CC[_], +C]
2828
extends Any
2929
with IterableOps[A, CC, C] {
3030

library/src/scala/collection/StrictOptimizedMapOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package scala.collection
2020
* @tparam CC Collection type constructor
2121
* @tparam C Collection type
2222
*/
23-
trait StrictOptimizedMapOps[K, +V, +CC[_, _] <: IterableOps[_, AnyConstr, _], +C]
23+
transparent trait StrictOptimizedMapOps[K, +V, +CC[_, _] <: IterableOps[_, AnyConstr, _], +C]
2424
extends MapOps[K, V, CC, C]
2525
with StrictOptimizedIterableOps[(K, V), Iterable, C] {
2626

library/src/scala/collection/StrictOptimizedSeqOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ package scala.collection
1616
* Trait that overrides operations on sequences in order
1717
* to take advantage of strict builders.
1818
*/
19-
trait StrictOptimizedSeqOps [+A, +CC[_], +C]
19+
transparent trait StrictOptimizedSeqOps [+A, +CC[_], +C]
2020
extends Any
2121
with SeqOps[A, CC, C]
2222
with StrictOptimizedIterableOps[A, CC, C] {

library/src/scala/collection/StrictOptimizedSetOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package scala.collection
1919
* @tparam CC Collection type constructor
2020
* @tparam C Collection type
2121
*/
22-
trait StrictOptimizedSetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
22+
transparent trait StrictOptimizedSetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
2323
extends SetOps[A, CC, C]
2424
with StrictOptimizedIterableOps[A, CC, C] {
2525

library/src/scala/collection/StrictOptimizedSortedMapOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import scala.annotation.implicitNotFound
2222
* @tparam CC Collection type constructor
2323
* @tparam C Collection type
2424
*/
25-
trait StrictOptimizedSortedMapOps[K, +V, +CC[X, Y] <: Map[X, Y] with SortedMapOps[X, Y, CC, _], +C <: SortedMapOps[K, V, CC, C]]
25+
transparent trait StrictOptimizedSortedMapOps[K, +V, +CC[X, Y] <: Map[X, Y] with SortedMapOps[X, Y, CC, _], +C <: SortedMapOps[K, V, CC, C]]
2626
extends SortedMapOps[K, V, CC, C]
2727
with StrictOptimizedMapOps[K, V, Map, C] {
2828

library/src/scala/collection/StrictOptimizedSortedSetOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import scala.annotation.unchecked.uncheckedVariance
2323
* @tparam CC Collection type constructor
2424
* @tparam C Collection type
2525
*/
26-
trait StrictOptimizedSortedSetOps[A, +CC[X] <: SortedSet[X], +C <: SortedSetOps[A, CC, C]]
26+
transparent trait StrictOptimizedSortedSetOps[A, +CC[X] <: SortedSet[X], +C <: SortedSetOps[A, CC, C]]
2727
extends SortedSetOps[A, CC, C]
2828
with StrictOptimizedSetOps[A, Set, C] {
2929

library/src/scala/collection/generic/DefaultSerializationProxy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private[collection] case object SerializeEnd
7474
* it directly without using this trait if you need a non-standard factory or if you want to use a different
7575
* serialization scheme.
7676
*/
77-
trait DefaultSerializable extends Serializable { this: scala.collection.Iterable[_] =>
77+
transparent trait DefaultSerializable extends Serializable { this: scala.collection.Iterable[_] =>
7878
protected[this] def writeReplace(): AnyRef = {
7979
val f: Factory[Any, Any] = this match {
8080
case it: scala.collection.SortedMap[_, _] => it.sortedMapFactory.sortedMapFactory[Any, Any](using it.ordering.asInstanceOf[Ordering[Any]]).asInstanceOf[Factory[Any, Any]]

library/src/scala/collection/generic/IsIterable.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ package generic
109109
* (Note that in practice the `IsIterable[Range]` instance is already provided by
110110
* the standard library, and it is defined as an `IsSeq[Range]` instance)
111111
*/
112-
trait IsIterable[Repr] extends IsIterableOnce[Repr] {
112+
transparent trait IsIterable[Repr] extends IsIterableOnce[Repr] {
113113

114114
/** The type returned by transformation operations that preserve the same elements
115115
* type (e.g. `filter`, `take`).
@@ -149,7 +149,7 @@ object IsIterable extends IsIterableLowPriority {
149149

150150
}
151151

152-
trait IsIterableLowPriority {
152+
transparent trait IsIterableLowPriority {
153153

154154
// Makes `IsSeq` instances visible in `IsIterable` companion
155155
implicit def isSeqLikeIsIterable[Repr](implicit

library/src/scala/collection/generic/IsIterableOnce.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ package generic
3737
* // == List(2, 4)
3838
* }}}
3939
*/
40-
trait IsIterableOnce[Repr] {
40+
transparent trait IsIterableOnce[Repr] {
4141

4242
/** The type of elements we can traverse over (e.g. `Int`). */
4343
type A
@@ -61,7 +61,7 @@ object IsIterableOnce extends IsIterableOnceLowPriority {
6161

6262
}
6363

64-
trait IsIterableOnceLowPriority {
64+
transparent trait IsIterableOnceLowPriority {
6565

6666
// Makes `IsIterable` instance visible in `IsIterableOnce` companion
6767
implicit def isIterableLikeIsIterableOnce[Repr](implicit

library/src/scala/collection/generic/IsMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import scala.collection.immutable.{IntMap, LongMap}
2626
* @see [[scala.collection.generic.IsIterable]]
2727
* @tparam Repr Collection type (e.g. `Map[Int, String]`)
2828
*/
29-
trait IsMap[Repr] extends IsIterable[Repr] {
29+
transparent trait IsMap[Repr] extends IsIterable[Repr] {
3030

3131
/** The type of keys */
3232
type K

library/src/scala/collection/generic/IsSeq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import scala.reflect.ClassTag
2525
*
2626
* @see [[scala.collection.generic.IsIterable]]
2727
*/
28-
trait IsSeq[Repr] extends IsIterable[Repr] {
28+
transparent trait IsSeq[Repr] extends IsIterable[Repr] {
2929

3030
@deprecated("'conversion' is now a method named 'apply'", "2.13.0")
3131
override val conversion: Repr => SeqOps[A, Iterable, C] = apply(_)

library/src/scala/collection/immutable/Map.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ trait Map[K, +V]
5959
* @define coll immutable map
6060
* @define Coll `immutable.Map`
6161
*/
62-
trait MapOps[K, +V, +CC[X, +Y] <: MapOps[X, Y, CC, _], +C <: MapOps[K, V, CC, C]]
62+
transparent trait MapOps[K, +V, +CC[X, +Y] <: MapOps[X, Y, CC, _], +C <: MapOps[K, V, CC, C]]
6363
extends IterableOps[(K, V), Iterable, C]
6464
with collection.MapOps[K, V, CC, C] {
6565

@@ -149,7 +149,7 @@ trait MapOps[K, +V, +CC[X, +Y] <: MapOps[X, Y, CC, _], +C <: MapOps[K, V, CC, C]
149149

150150
}
151151

152-
trait StrictOptimizedMapOps[K, +V, +CC[X, +Y] <: MapOps[X, Y, CC, _], +C <: MapOps[K, V, CC, C]]
152+
transparent trait StrictOptimizedMapOps[K, +V, +CC[X, +Y] <: MapOps[X, Y, CC, _], +C <: MapOps[K, V, CC, C]]
153153
extends MapOps[K, V, CC, C]
154154
with collection.StrictOptimizedMapOps[K, V, CC, C]
155155
with StrictOptimizedIterableOps[(K, V), Iterable, C] {

library/src/scala/collection/immutable/Seq.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trait Seq[+A] extends Iterable[A]
2828
* @define coll immutable sequence
2929
* @define Coll `immutable.Seq`
3030
*/
31-
trait SeqOps[+A, +CC[_], +C] extends Any with collection.SeqOps[A, CC, C]
31+
transparent trait SeqOps[+A, +CC[_], +C] extends Any with collection.SeqOps[A, CC, C]
3232

3333
/**
3434
* $factoryInfo
@@ -117,7 +117,7 @@ object IndexedSeq extends SeqFactory.Delegate[IndexedSeq](Vector) {
117117
}
118118

119119
/** Base trait for immutable indexed Seq operations */
120-
trait IndexedSeqOps[+A, +CC[_], +C]
120+
transparent trait IndexedSeqOps[+A, +CC[_], +C]
121121
extends SeqOps[A, CC, C]
122122
with collection.IndexedSeqOps[A, CC, C] {
123123

@@ -147,7 +147,7 @@ object LinearSeq extends SeqFactory.Delegate[LinearSeq](List) {
147147
}
148148
}
149149

150-
trait LinearSeqOps[+A, +CC[X] <: LinearSeq[X], +C <: LinearSeq[A] with LinearSeqOps[A, CC, C]]
150+
transparent trait LinearSeqOps[+A, +CC[X] <: LinearSeq[X], +C <: LinearSeq[A] with LinearSeqOps[A, CC, C]]
151151
extends Any with SeqOps[A, CC, C]
152152
with collection.LinearSeqOps[A, CC, C]
153153

library/src/scala/collection/immutable/Set.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ trait Set[A] extends Iterable[A]
3030
* @define coll immutable set
3131
* @define Coll `immutable.Set`
3232
*/
33-
trait SetOps[A, +CC[X], +C <: SetOps[A, CC, C]]
33+
transparent trait SetOps[A, +CC[X], +C <: SetOps[A, CC, C]]
3434
extends collection.SetOps[A, CC, C] {
3535

3636
/** Creates a new set with an additional element, unless the element is
@@ -71,7 +71,7 @@ trait SetOps[A, +CC[X], +C <: SetOps[A, CC, C]]
7171
override final def -- (that: IterableOnce[A]): C = removedAll(that)
7272
}
7373

74-
trait StrictOptimizedSetOps[A, +CC[X], +C <: SetOps[A, CC, C]]
74+
transparent trait StrictOptimizedSetOps[A, +CC[X], +C <: SetOps[A, CC, C]]
7575
extends SetOps[A, CC, C]
7676
with collection.StrictOptimizedSetOps[A, CC, C]
7777
with StrictOptimizedIterableOps[A, CC, C] {

library/src/scala/collection/immutable/SortedMap.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ trait SortedMap[K, +V]
8383
override def withDefaultValue[V1 >: V](d: V1): SortedMap[K, V1] = new SortedMap.WithDefault[K, V1](this, _ => d)
8484
}
8585

86-
trait SortedMapOps[K, +V, +CC[X, +Y] <: Map[X, Y] with SortedMapOps[X, Y, CC, _], +C <: SortedMapOps[K, V, CC, C]]
86+
transparent trait SortedMapOps[K, +V, +CC[X, +Y] <: Map[X, Y] with SortedMapOps[X, Y, CC, _], +C <: SortedMapOps[K, V, CC, C]]
8787
extends MapOps[K, V, Map, C] with collection.SortedMapOps[K, V, CC, C] { self =>
8888

8989
protected def coll: C with CC[K, V]
@@ -118,7 +118,7 @@ trait SortedMapOps[K, +V, +CC[X, +Y] <: Map[X, Y] with SortedMapOps[X, Y, CC, _]
118118
override def transform[W](f: (K, V) => W): CC[K, W] = map({ case (k, v) => (k, f(k, v)) })(ordering)
119119
}
120120

121-
trait StrictOptimizedSortedMapOps[K, +V, +CC[X, +Y] <: Map[X, Y] with SortedMapOps[X, Y, CC, _], +C <: SortedMapOps[K, V, CC, C]]
121+
transparent trait StrictOptimizedSortedMapOps[K, +V, +CC[X, +Y] <: Map[X, Y] with SortedMapOps[X, Y, CC, _], +C <: SortedMapOps[K, V, CC, C]]
122122
extends SortedMapOps[K, V, CC, C]
123123
with collection.StrictOptimizedSortedMapOps[K, V, CC, C]
124124
with StrictOptimizedMapOps[K, V, Map, C] {

library/src/scala/collection/immutable/SortedSet.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ trait SortedSet[A]
3030
* @define coll immutable sorted set
3131
* @define Coll `immutable.SortedSet`
3232
*/
33-
trait SortedSetOps[A, +CC[X] <: SortedSet[X], +C <: SortedSetOps[A, CC, C]]
33+
transparent trait SortedSetOps[A, +CC[X] <: SortedSet[X], +C <: SortedSetOps[A, CC, C]]
3434
extends SetOps[A, Set, C]
3535
with collection.SortedSetOps[A, CC, C] {
3636

3737
def unsorted: Set[A]
3838
}
3939

40-
trait StrictOptimizedSortedSetOps[A, +CC[X] <: SortedSet[X], +C <: SortedSetOps[A, CC, C]]
40+
transparent trait StrictOptimizedSortedSetOps[A, +CC[X] <: SortedSet[X], +C <: SortedSetOps[A, CC, C]]
4141
extends SortedSetOps[A, CC, C]
4242
with collection.StrictOptimizedSortedSetOps[A, CC, C]
4343
with StrictOptimizedSetOps[A, Set, C] {

library/src/scala/collection/immutable/StrictOptimizedSeqOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import scala.collection.generic.CommonErrors
1818

1919
/** Trait that overrides operations to take advantage of strict builders.
2020
*/
21-
trait StrictOptimizedSeqOps[+A, +CC[_], +C]
21+
transparent trait StrictOptimizedSeqOps[+A, +CC[_], +C]
2222
extends Any
2323
with SeqOps[A, CC, C]
2424
with collection.StrictOptimizedSeqOps[A, CC, C]

library/src/scala/collection/mutable/ArrayDeque.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ object ArrayDeque extends StrictOptimizedSeqFactory[ArrayDeque] {
568568
}
569569
}
570570

571-
trait ArrayDequeOps[A, +CC[_], +C <: AnyRef] extends StrictOptimizedSeqOps[A, CC, C] {
571+
transparent trait ArrayDequeOps[A, +CC[_], +C <: AnyRef] extends StrictOptimizedSeqOps[A, CC, C] {
572572
protected def array: Array[AnyRef]
573573

574574
final override def clone(): C = klone()

library/src/scala/collection/mutable/IndexedSeq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ trait IndexedSeq[T] extends Seq[T]
2424
@SerialVersionUID(3L)
2525
object IndexedSeq extends SeqFactory.Delegate[IndexedSeq](ArrayBuffer)
2626

27-
trait IndexedSeqOps[A, +CC[_], +C <: AnyRef]
27+
transparent trait IndexedSeqOps[A, +CC[_], +C <: AnyRef]
2828
extends scala.collection.IndexedSeqOps[A, CC, C]
2929
with SeqOps[A, CC, C] {
3030

library/src/scala/collection/mutable/Map.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ trait Map[K, V]
6262
* @define coll mutable map
6363
* @define Coll `mutable.Map`
6464
*/
65-
trait MapOps[K, V, +CC[X, Y] <: MapOps[X, Y, CC, _], +C <: MapOps[K, V, CC, C]]
65+
transparent trait MapOps[K, V, +CC[X, Y] <: MapOps[X, Y, CC, _], +C <: MapOps[K, V, CC, C]]
6666
extends IterableOps[(K, V), Iterable, C]
6767
with collection.MapOps[K, V, CC, C]
6868
with Cloneable[C]

library/src/scala/collection/mutable/Seq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ object Seq extends SeqFactory.Delegate[Seq](ArrayBuffer)
3535
* @define coll mutable sequence
3636
* @define Coll `mutable.Seq`
3737
*/
38-
trait SeqOps[A, +CC[_], +C <: AnyRef]
38+
transparent trait SeqOps[A, +CC[_], +C <: AnyRef]
3939
extends collection.SeqOps[A, CC, C]
4040
with Cloneable[C] {
4141

library/src/scala/collection/mutable/Set.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trait Set[A]
2828
* @define coll mutable set
2929
* @define Coll `mutable.Set`
3030
*/
31-
trait SetOps[A, +CC[X], +C <: SetOps[A, CC, C]]
31+
transparent trait SetOps[A, +CC[X], +C <: SetOps[A, CC, C]]
3232
extends collection.SetOps[A, CC, C]
3333
with IterableOps[A, CC, C] // only needed so we can use super[IterableOps] below
3434
with Cloneable[C]

0 commit comments

Comments
 (0)