aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/range.scala
blob: 9e7b5d1c9430e7e4e029a4244c7c52f5f1d7eddf (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)
}