Skip to content

Commit 0e0b7d9

Browse files
committed
Fix #2310: Add regression test
1 parent 7cd176f commit 0e0b7d9

File tree

1 file changed

+8
-0
lines changed
  • compiler/test-resources/repl

1 file changed

+8
-0
lines changed

compiler/test-resources/repl/i2310

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
scala> trait T(x: Int)
2+
// defined trait T
3+
scala> trait U extends T
4+
// defined trait U
5+
scala> class C extends U with T(22) { override def toString = "C" }
6+
// defined class C
7+
scala> new C
8+
val res0: C = C

0 commit comments

Comments
 (0)