diff options
author | Martin Odersky <odersky@gmail.com> | 2014-11-24 17:17:27 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-11-24 17:17:27 +0100 |
commit | 642c5e4500abfc5cef51eee7ed0a98930a24312f (patch) | |
tree | eeda27483b71058860e364ca675bc3a835ebe2cb /tests/neg/cycles.scala | |
parent | 9d6c1040448c48dac2ac3f292fd1e3b65b061b78 (diff) | |
download | dotty-642c5e4500abfc5cef51eee7ed0a98930a24312f.tar.gz dotty-642c5e4500abfc5cef51eee7ed0a98930a24312f.tar.bz2 dotty-642c5e4500abfc5cef51eee7ed0a98930a24312f.zip |
Fixed cycle detection.
Now detects the cycles reported by @retronym
Diffstat (limited to 'tests/neg/cycles.scala')
-rw-r--r-- | tests/neg/cycles.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/neg/cycles.scala b/tests/neg/cycles.scala index dbcbe1efb..0dd24c309 100644 --- a/tests/neg/cycles.scala +++ b/tests/neg/cycles.scala @@ -27,3 +27,16 @@ class E { } val x: F#T = ??? } + +class T1 { + type X = (U, U) // cycle + type U = X & Int +} +class T2 { + type X = (U, U) // cycle + type U = X | Int +} +object T12 { + ??? : (T1 {})#U + ??? : (T2 {})#U +} |