We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b162ff commit 4689bd3Copy full SHA for 4689bd3
tests/neg/abstract-override.scala
@@ -0,0 +1,8 @@
1
+trait T { def foo: Int }
2
+trait T1 extends T { override def foo = super.foo }
3
+trait T2 extends T { override def foo = super.foo }
4
+object Test extends T2 with T1 {
5
+ def main(args: Array[String]) = {
6
+ assert(foo == 3)
7
+ }
8
+}
0 commit comments