aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/range.scala
blob: a33f7fcee19cca70ef064a0512d0e3c764ad3493 (plain) (blame)
1
2
3
4
5
6
7
8
9
import scala.math._
import collection.immutable.NumericRange
object Test {
  val r1: scala.collection.immutable.Range.Partial[_, _] = ???
  val r2: scala.Range.Partial[_, _] = r1
  def until(d: BigDecimal, end: BigDecimal): Range.Partial[BigDecimal, NumericRange.Exclusive[BigDecimal]] =
    new Range.Partial(until(d, end, _))
  def until(d: BigDecimal, end: BigDecimal, step: BigDecimal) = Range.BigDecimal(d, end, step)
}