From 2042adc79cff35cdafef4130b74ed90d0d5841bf Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 19 Jan 2016 19:13:31 +0100 Subject: Extend test We verified that before the combination abstract/concrete for `x` also led to AMEs. So we test it here explicitly, too. --- tests/run/t7475b.scala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/run/t7475b.scala') 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 { } } } -- cgit v1.2.3