Skip to content

Commit 953e8db

Browse files
committed
test case
1 parent f479be1 commit 953e8db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/neg/i2677.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)