Skip to content

Commit 71435b3

Browse files
committed
Adapt overrides for Scala 2.13.0-RC3 and 2.13.0 final.
Ported from scala/scala#8083 upstream.
1 parent 907af56 commit 71435b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scalalib/overrides-2.13/scala/collection/immutable/NumericRange.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ sealed class NumericRange[T](
5454

5555
override def iterator: Iterator[T] = new NumericRange.NumericRangeIterator(this, num)
5656

57-
override def stepper[B >: T, S <: Stepper[_]](implicit shape: StepperShape[B, S]): S with EfficientSplit = {
57+
override def stepper[S <: Stepper[_]](implicit shape: StepperShape[T, S]): S with EfficientSplit = {
5858
import scala.collection.convert._
5959
import impl._
6060
val s = shape.shape match {
6161
case StepperShape.IntShape => new IntNumericRangeStepper (this.asInstanceOf[NumericRange[Int]], 0, length)
6262
case StepperShape.LongShape => new LongNumericRangeStepper (this.asInstanceOf[NumericRange[Long]], 0, length)
63-
case _ => shape.parUnbox(new AnyNumericRangeStepper[T](this, 0, length).asInstanceOf[AnyStepper[B] with EfficientSplit])
63+
case _ => shape.parUnbox(new AnyNumericRangeStepper[T](this, 0, length).asInstanceOf[AnyStepper[T] with EfficientSplit])
6464
}
6565
s.asInstanceOf[S with EfficientSplit]
6666
}

scalalib/overrides-2.13/scala/collection/immutable/Range.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ sealed abstract class Range(
7070

7171
final override def iterator: Iterator[Int] = new RangeIterator(start, step, lastElement, isEmpty)
7272

73-
override final def stepper[B >: Int, S <: Stepper[_]](implicit shape: StepperShape[B, S]): S with EfficientSplit = {
73+
override final def stepper[S <: Stepper[_]](implicit shape: StepperShape[Int, S]): S with EfficientSplit = {
7474
val st = new RangeStepper(start, step, 0, length)
7575
val r =
7676
if (shape.shape == StepperShape.IntShape) st

0 commit comments

Comments
 (0)