Skip to content

Commit 1bd27f7

Browse files
oderskynicolasstucki
authored andcommitted
add @superTrait
1 parent a9f2bdb commit 1bd27f7

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

src/library/scala/collection/SortedOps.scala

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

1515

1616
/** Base trait for sorted collections */
17+
@annotation.superTrait
1718
trait SortedOps[A, +C] {
1819

1920
def ordering: Ordering[A]

src/library/scala/collection/StrictOptimizedSortedSetOps.scala

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +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+
@annotation.superTrait
7778
trait DefaultSerializable extends Serializable { this: scala.collection.Iterable[_] =>
7879
protected[this] def writeReplace(): AnyRef = {
7980
val f: Factory[Any, Any] = this match {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +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+
@annotation.superTrait
112113
trait IsIterable[Repr] extends IsIterableOnce[Repr] {
113114

114115
/** The type returned by transformation operations that preserve the same elements

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ package generic
3737
* // == List(2, 4)
3838
* }}}
3939
*/
40+
@annotation.superTrait
4041
trait IsIterableOnce[Repr] {
4142

4243
/** The type of elements we can traverse over (e.g. `Int`). */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +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+
@annotation.superTrait
2930
trait IsMap[Repr] extends IsIterable[Repr] {
3031

3132
/** The type of keys */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import scala.reflect.ClassTag
2525
*
2626
* @see [[scala.collection.generic.IsIterable]]
2727
*/
28+
@annotation.superTrait
2829
trait IsSeq[Repr] extends IsIterable[Repr] {
2930

3031
@deprecated("'conversion' is now a method named 'apply'", "2.13.0")

src/library/scala/collection/generic/Subtractable.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import scala.collection.IterableOnce
2727
* @define Coll Subtractable
2828
*/
2929
@deprecated("Subtractable is deprecated. This is now implemented as part of SetOps, MapOps, etc.", "2.13.0")
30+
@annotation.superTrait
3031
trait Subtractable[A, +Repr <: Subtractable[A, Repr]] { self =>
3132

3233
/** The representation object of type `Repr` which contains the collection's elements

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package immutable
1717
/**
1818
* Trait that overrides operations to take advantage of strict builders.
1919
*/
20+
@annotation.superTrait
2021
trait StrictOptimizedSeqOps[+A, +CC[_], +C]
2122
extends Any
2223
with SeqOps[A, CC, C]

0 commit comments

Comments
 (0)