We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ada5ac7 + 0e533b0 commit 4b5a351Copy full SHA for 4b5a351
tests/neg/i9460.check
@@ -0,0 +1,5 @@
1
+-- Error: tests/neg/i9460.scala:3:6 ------------------------------------------------------------------------------------
2
+3 |class C extends B // error
3
+ | ^
4
+ | parameterized trait A is indirectly implemented,
5
+ | needs to be implemented directly so that arguments can be passed
tests/neg/i9460.scala
@@ -0,0 +1,4 @@
+trait A(val s: String) { println(s) }
+trait B extends A { override val s = "B" } // requires override val s
+class C extends B // error
+@main def Test = C()
0 commit comments