Skip to content

Commit 2042adc

Browse files
committed
Extend test
We verified that before the combination abstract/concrete for `x` also led to AMEs. So we test it here explicitly, too.
1 parent 5e9a40a commit 2042adc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/run/t7475b.check

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
2
22
2
3+
2
4+
2

tests/run/t7475b.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
trait A { private val x = 1 }
22
trait B { val x = 2 }
3+
trait C { val x: Int }
34
trait C1 extends B with A { println(x) }
45
trait C2 extends A with B { println(x) }
6+
trait C3 extends C with B { println(x) }
7+
trait C4 extends B with C { println(x) }
58

69
object Test {
710
def main(args: Array[String]): Unit = {
811
new C1 { }
912
new C2 { }
13+
new C3 { }
14+
new C4 { }
1015
}
1116
}

0 commit comments

Comments
 (0)