diff options
author | Martin Odersky <odersky@gmail.com> | 2016-01-19 19:13:31 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-01-19 19:13:31 +0100 |
commit | 2042adc79cff35cdafef4130b74ed90d0d5841bf (patch) | |
tree | 568cce8e1ef55811dc6c49fba2412976cbc6aaca /tests/run/t7475b.scala | |
parent | 5e9a40a45503eab81d58368ab7f26de7fbe458ba (diff) | |
download | dotty-2042adc79cff35cdafef4130b74ed90d0d5841bf.tar.gz dotty-2042adc79cff35cdafef4130b74ed90d0d5841bf.tar.bz2 dotty-2042adc79cff35cdafef4130b74ed90d0d5841bf.zip |
Extend test
We verified that before the combination abstract/concrete for `x`
also led to AMEs. So we test it here explicitly, too.
Diffstat (limited to 'tests/run/t7475b.scala')
-rw-r--r-- | tests/run/t7475b.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run/t7475b.scala b/tests/run/t7475b.scala index a205602b6..d3b0435b0 100644 --- a/tests/run/t7475b.scala +++ b/tests/run/t7475b.scala @@ -1,11 +1,16 @@ trait A { private val x = 1 } trait B { val x = 2 } +trait C { val x: Int } trait C1 extends B with A { println(x) } trait C2 extends A with B { println(x) } +trait C3 extends C with B { println(x) } +trait C4 extends B with C { println(x) } object Test { def main(args: Array[String]): Unit = { new C1 { } new C2 { } + new C3 { } + new C4 { } } } |