aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i0091-infpaths.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-12-13 14:47:12 +0100
committerMartin Odersky <odersky@gmail.com>2014-12-13 17:57:57 +0100
commit0cee59bbf965440de813d5813c6086b97e444d5f (patch)
tree862c70b350bb7342815114581634c6c579c7e4df /tests/neg/i0091-infpaths.scala
parentf3d887f079efbe7dbb53abd22bd212eee8e1c67a (diff)
downloaddotty-0cee59bbf965440de813d5813c6086b97e444d5f.tar.gz
dotty-0cee59bbf965440de813d5813c6086b97e444d5f.tar.bz2
dotty-0cee59bbf965440de813d5813c6086b97e444d5f.zip
Two new tests
1) Verify we survive illegal infinite paths. Closes #91. 2) Verify we handle fbounds in and types correctly.
Diffstat (limited to 'tests/neg/i0091-infpaths.scala')
-rw-r--r--tests/neg/i0091-infpaths.scala16
1 files changed, 16 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
+
+}