Skip to content

Commit cb2fd3b

Browse files
committed
Add a couple missing hats
1 parent 07547f4 commit cb2fd3b

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

library/src/scala/collection/ArrayOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ final class ArrayOps[A](private val xs: Array[A]) extends AnyVal {
11721172
dest
11731173
}
11741174

1175-
@`inline` final def ++: [B >: A : ClassTag](prefix: IterableOnce[B]): Array[B] = prependedAll(prefix)
1175+
@`inline` final def ++: [B >: A : ClassTag](prefix: IterableOnce[B]^): Array[B] = prependedAll(prefix)
11761176

11771177
@`inline` final def ++: [B >: A : ClassTag](prefix: Array[_ <: B]): Array[B] = prependedAll(prefix)
11781178

library/src/scala/collection/Iterable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ transparent trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] w
669669
* @param op the binary operator applied to the intermediate result and the element
670670
* @return collection with intermediate results
671671
*/
672-
def scanRight[B](z: B)(op: (A, B) => B): CC[B] = {
672+
def scanRight[B](z: B)(op: (A, B) => B): CC[B]^{this, op} = {
673673
class Scanner extends runtime.AbstractFunction1[A, Unit] {
674674
var acc = z
675675
var scanned = acc :: immutable.Nil

library/src/scala/collection/IterableOnce.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ transparent trait IterableOnceOps[+A, +CC[_], +C] extends Any { this: IterableOn
12881288
* `p(x, y)` is `true` for all corresponding elements `x` of this iterator
12891289
* and `y` of `that`, otherwise `false`
12901290
*/
1291-
def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean = {
1291+
def corresponds[B](that: IterableOnce[B]^)(p: (A, B) => Boolean): Boolean = {
12921292
val a = iterator
12931293
val b = that.iterator
12941294

library/src/scala/collection/LazyZipOps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ final class LazyZip3[+El1, +El2, +El3, C1] private[collection](src: C1,
177177
})
178178
}
179179

180-
def flatMap[B, C](f: (El1, El2, El3) => Iterable[B])(implicit bf: BuildFrom[C1, B, C]): C^{this, f} = {
180+
def flatMap[B, C](f: (El1, El2, El3) => Iterable[B]^)(implicit bf: BuildFrom[C1, B, C]): C^{this, f} = {
181181
bf.fromSpecific(src)(new AbstractView[B] {
182182
def iterator: AbstractIterator[B]^{this, f} = new AbstractIterator[B] {
183183
private[this] val elems1 = coll1.iterator
@@ -310,7 +310,7 @@ final class LazyZip4[+El1, +El2, +El3, +El4, C1] private[collection](src: C1,
310310
})
311311
}
312312

313-
def flatMap[B, C](f: (El1, El2, El3, El4) => Iterable[B])(implicit bf: BuildFrom[C1, B, C]): C^{this, f} = {
313+
def flatMap[B, C](f: (El1, El2, El3, El4) => Iterable[B]^)(implicit bf: BuildFrom[C1, B, C]): C^{this, f} = {
314314
bf.fromSpecific(src)(new AbstractView[B] {
315315
def iterator: AbstractIterator[B]^{this, f} = new AbstractIterator[B] {
316316
private[this] val elems1 = coll1.iterator

library/src/scala/collection/SortedSet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ object SortedSetOps {
179179
def map[B : Ordering](f: A => B): CC[B] =
180180
self.sortedIterableFactory.from(new View.Map(filtered, f))
181181

182-
def flatMap[B : Ordering](f: A => IterableOnce[B]): CC[B] =
182+
def flatMap[B : Ordering](f: A => IterableOnce[B]^): CC[B] =
183183
self.sortedIterableFactory.from(new View.FlatMap(filtered, f))
184184

185185
override def withFilter(q: A => Boolean): WithFilter[A, IterableCC, CC]^{this, q} =

library/src/scala/collection/StringOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ object StringOps {
124124
* @return a new collection resulting from applying the given collection-valued function
125125
* `f` to each char of this string and concatenating the results.
126126
*/
127-
def flatMap[B](f: Char => IterableOnce[B]): immutable.IndexedSeq[B] = {
127+
def flatMap[B](f: Char => IterableOnce[B]^): immutable.IndexedSeq[B] = {
128128
val len = s.length
129129
val b = immutable.IndexedSeq.newBuilder[B]
130130
var i = 0

0 commit comments

Comments
 (0)