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 f479be1 commit 953e8dbCopy full SHA for 953e8db
tests/neg/i2677.scala
@@ -0,0 +1,6 @@
1
+trait A { def x = "foo" }
2
+trait B { def x = 42 }
3
+object Test {
4
+ val AB = new A with B { override def x = super.x } // error: wrong override
5
+ AB.x
6
+}
0 commit comments