aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-10-25 17:50:35 +0100
committerGuillaume Martres <smarter@ubuntu.com>2015-10-25 17:50:35 +0100
commit51ab200f97f11ac74270f6925028ba4d58284e7b (patch)
tree90b86a23c2713754a21d7f030ecf3205a151e014 /tests/pos
parent08df804a5b4b7289a1518aa5ccf9753ec1a8cd7a (diff)
parent7947a7b0fc818128f5e2a0cd10cc43d2d7614354 (diff)
downloaddotty-51ab200f97f11ac74270f6925028ba4d58284e7b.tar.gz
dotty-51ab200f97f11ac74270f6925028ba4d58284e7b.tar.bz2
dotty-51ab200f97f11ac74270f6925028ba4d58284e7b.zip
Merge pull request #865 from dotty-staging/fix-module-alias-subtyping
Fix hole in subtyping of modules
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/range.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/range.scala b/tests/pos/range.scala
new file mode 100644
index 000000000..9e7b5d1c9
--- /dev/null
+++ b/tests/pos/range.scala
@@ -0,0 +1,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)
+}