Skip to content

Commit 4689bd3

Browse files
committed
Add missing negative test.
1 parent 2b162ff commit 4689bd3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/neg/abstract-override.scala

+8
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)