diff options
author | Martin Odersky <odersky@gmail.com> | 2016-01-31 22:22:54 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-09 09:43:06 +0100 |
commit | e87dee212351aa7acb15760814cdd1c30c4de019 (patch) | |
tree | 1833586a82cee7632c150c35d5ec41f0187d80bb /tests/neg/i1050.scala | |
parent | 0480cb2a5902b733145f54fdc238aba7b831396b (diff) | |
download | dotty-e87dee212351aa7acb15760814cdd1c30c4de019.tar.gz dotty-e87dee212351aa7acb15760814cdd1c30c4de019.tar.bz2 dotty-e87dee212351aa7acb15760814cdd1c30c4de019.zip |
Fix path error disgnastics
Fix wording so that it works for nested errors as well.
Incorparte Tiark's latest example.
Diffstat (limited to 'tests/neg/i1050.scala')
-rw-r--r-- | tests/neg/i1050.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/neg/i1050.scala b/tests/neg/i1050.scala index 99d81c317..047d9f776 100644 --- a/tests/neg/i1050.scala +++ b/tests/neg/i1050.scala @@ -63,6 +63,22 @@ object Tiark2 { val v = new V {} v.brand("boom!"): Nothing } +object Tiark3 { + trait A { type L <: Nothing } + trait B { type L >: Any} + trait U { + type X <: B + def p2: X + final lazy val p: X = p2 + def brand(x: Any): p.L = x + } + trait V extends U { + type X = B with A + def p2: X = ??? + } + val v = new V {} + v.brand("boom!"): Nothing +} /* object Import { trait A { type L <: Nothing } |