diff options
author | Martin Odersky <odersky@gmail.com> | 2016-02-02 10:21:12 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-09 09:43:08 +0100 |
commit | ec4a3a0f4d0b8cccf636d1608896e7cafba9dec0 (patch) | |
tree | 9b732c1937b3d781b117a445a95c7f5e6ffb8bbf /tests/neg/cycles.scala | |
parent | d34256c14a507dbdaea10bd83e8006cdafb9c799 (diff) | |
download | dotty-ec4a3a0f4d0b8cccf636d1608896e7cafba9dec0.tar.gz dotty-ec4a3a0f4d0b8cccf636d1608896e7cafba9dec0.tar.bz2 dotty-ec4a3a0f4d0b8cccf636d1608896e7cafba9dec0.zip |
Big realizability refactoring
Move logic from TypeOps to new file CheckRealizable.scala.
Also check realizable fields under strict mode.
Check at phase PostTyper rather than Typer to avoid cycles.
New tests for imports and deep paths.
Diffstat (limited to 'tests/neg/cycles.scala')
-rw-r--r-- | tests/neg/cycles.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/neg/cycles.scala b/tests/neg/cycles.scala index 550bc98ea..ced6f56b5 100644 --- a/tests/neg/cycles.scala +++ b/tests/neg/cycles.scala @@ -13,7 +13,7 @@ class B { } class C { - final val x: D#T = ??? // error: conflicting bounds + final val x: D#T = ??? class D { type T <: x.type // error: cycle val z: x.type = ??? @@ -25,7 +25,7 @@ class E { type T <: x.type // error: not stable val z: x.type = ??? // error: not stable } - lazy val x: F#T = ??? // error: conflicting bounds + lazy val x: F#T = ??? } class T1 { |