Skip to content

Commit 63d3084

Browse files
committed
Fix some cc errors
1 parent 8d3ee01 commit 63d3084

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

library/src/scala/collection/Iterator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ trait Iterator[+A] extends IterableOnce[A] with IterableOnceOps[A, Iterator, Ite
189189
* @note This method is mutually exclusive with `withPartial`.
190190
* @group Configuration
191191
*/
192-
def withPadding(x: => B): this.type = {
192+
def withPadding(x: -> B): this.type = {
193193
padding = () => x
194194
partial = true // redundant, as padding always results in complete segment
195195
this

library/src/scala/collection/SeqView.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ object SeqView {
138138
extends SeqView[A] {
139139
outer: Sorted[A, B]^ =>
140140

141-
private var underlying: SomeSeqOps[A] | Null = underlying_
141+
private var underlying: SomeSeqOps[A]^{underlying_} | Null = underlying_
142142

143143
// force evaluation immediately by calling `length` so infinite collections
144144
// hang on `sorted`/`sortWith`/`sortBy` rather than on arbitrary method calls

library/src/scala/collection/mutable/ListBuffer.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class ListBuffer[A]
125125
}
126126

127127
// MUST only be called on fresh instances
128-
private def freshFrom(xs: IterableOnce[A]): this.type = {
128+
private def freshFrom(xs: IterableOnce[A]^): this.type = {
129129
val it = xs.iterator
130130
if (it.hasNext) {
131131
var len = 1
@@ -144,7 +144,7 @@ class ListBuffer[A]
144144
this
145145
}
146146

147-
override final def addAll(xs: IterableOnce[A]): this.type = {
147+
override final def addAll(xs: IterableOnce[A]^): this.type = {
148148
val it = xs.iterator
149149
if (it.hasNext) {
150150
val fresh = new ListBuffer[A].freshFrom(it)
@@ -253,7 +253,7 @@ class ListBuffer[A]
253253
}
254254
}
255255

256-
def insertAll(idx: Int, elems: IterableOnce[A]): Unit = {
256+
def insertAll(idx: Int, elems: IterableOnce[A]^): Unit = {
257257
if (idx < 0 || idx > len) throw CommonErrors.indexOutOfBounds(index = idx, max = len - 1)
258258
val it = elems.iterator
259259
if (it.hasNext) {

library/src/scala/collection/mutable/UnrolledBuffer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ object UnrolledBuffer extends StrictOptimizedClassTagSeqFactory[UnrolledBuffer]
380380
if (next eq null) true else false // checks if last node was thrown out
381381
} else false
382382

383-
@tailrec final def insertAll(idx: Int, t: scala.collection.IterableOnce[T], buffer: UnrolledBuffer[T]): Int = {
383+
@tailrec final def insertAll(idx: Int, t: scala.collection.IterableOnce[T]^, buffer: UnrolledBuffer[T]): Int = {
384384
if (idx < size) {
385385
// divide this node at the appropriate position and insert all into head
386386
// update new next

0 commit comments

Comments
 (0)