Skip to content

Commit 2f79c6a

Browse files
committed
Add test case for ParentInheritedTwiceError.
1 parent d5006b1 commit 2f79c6a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parent-inherited-twice-error.scala:2: error: trait A is inherited twice
2+
class B extends A with A
3+
^
4+
parent-inherited-twice-error.scala:2: error: trait A is inherited twice
5+
class B extends A with A
6+
^
7+
two errors found
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
trait A
2+
class B extends A with A

0 commit comments

Comments
 (0)