aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2014-12-13 20:52:25 +0100
committerodersky <odersky@gmail.com>2014-12-13 20:52:25 +0100
commite7a4197cfb7b622893fa0dc99f42824522d89ca1 (patch)
tree5ee62bf66d99734e8dce717d767af1e42fe6ddd3 /tests
parent6542458dad39115734aa3d9cce9dff08a6176fb9 (diff)
parent0cee59bbf965440de813d5813c6086b97e444d5f (diff)
downloaddotty-e7a4197cfb7b622893fa0dc99f42824522d89ca1.tar.gz
dotty-e7a4197cfb7b622893fa0dc99f42824522d89ca1.tar.bz2
dotty-e7a4197cfb7b622893fa0dc99f42824522d89ca1.zip
Merge pull request #279 from dotty-staging/test/#91
Two new tests
Diffstat (limited to 'tests')
-rw-r--r--tests/neg/i0091-infpaths.scala16
-rw-r--r--tests/pos/fbounds.scala1
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/neg/i0091-infpaths.scala b/tests/neg/i0091-infpaths.scala
new file mode 100644
index 000000000..917ea49a2
--- /dev/null
+++ b/tests/neg/i0091-infpaths.scala
@@ -0,0 +1,16 @@
+object infpaths {
+
+ object a {
+ trait T { t =>
+ type M <: t.b.M
+ type T <: a.T
+ val b: t.T
+ }
+ val x: a.T = ???
+ }
+
+ val m1: a.x.M = ???
+ val m2: a.x.b.M = m1
+ val m3: a.x.b.b.M = m2
+
+}
diff --git a/tests/pos/fbounds.scala b/tests/pos/fbounds.scala
new file mode 100644
index 000000000..dd56de37f
--- /dev/null
+++ b/tests/pos/fbounds.scala
@@ -0,0 +1 @@
+class A [ T <: A[_] & Number]