Skip to content

Commit 0f1f145

Browse files
committed
Fix #5094: Add regression test
1 parent 1725a67 commit 0f1f145

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/run/i5094.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
trait IO {
2+
def c(x: Int): Int = ???
3+
}
4+
trait SO extends IO {
5+
override final def c(x: Int): Int = ???
6+
}
7+
trait SOIO extends IO {
8+
override def c(x: Int): Int = ???
9+
}
10+
trait SOSO extends SOIO with SO
11+
abstract class AS extends SO
12+
class L extends AS with SOSO
13+
object Test {
14+
def main(args: Array[String]): Unit = {
15+
new L
16+
}
17+
}

0 commit comments

Comments
 (0)