We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e9a40a commit 2042adcCopy full SHA for 2042adc
tests/run/t7475b.check
@@ -1,2 +1,4 @@
1
2
3
+2
4
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) }
5
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) }
8
9
object Test {
10
def main(args: Array[String]): Unit = {
11
new C1 { }
12
new C2 { }
13
+ new C3 { }
14
+ new C4 { }
15
}
16
0 commit comments