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 f33bc8d commit 0e533b0Copy full SHA for 0e533b0
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