diff options
author | Martin Odersky <odersky@gmail.com> | 2016-12-21 18:43:27 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-12-21 18:43:38 +0100 |
commit | e7b045a2fa9b1196465b388393ab23ce5979616e (patch) | |
tree | 7961fc0a7a7853f708f2fc06fa4cc54688b78013 /tests | |
parent | 098c50ac83eb4d18b23a1ed888cf601053c46ae6 (diff) | |
download | dotty-e7b045a2fa9b1196465b388393ab23ce5979616e.tar.gz dotty-e7b045a2fa9b1196465b388393ab23ce5979616e.tar.bz2 dotty-e7b045a2fa9b1196465b388393ab23ce5979616e.zip |
Fix #1795: Avoid infinite recursion between member and asSeenFrom
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/i1795.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pos/i1795.scala b/tests/pos/i1795.scala new file mode 100644 index 000000000..3e8bd1e97 --- /dev/null +++ b/tests/pos/i1795.scala @@ -0,0 +1,13 @@ +sealed trait T1 {type M1} + +case object o1 extends T1 + +sealed trait T2 {type M2} + +case object o2 extends T2 + +class TestX { + type TestT1 <: T1 {type M1 = TestT2} + type TestT2 <: T2 {type M2 = TestT1} + //val x: TestT1 = o1 +} |