Skip to content

Commit 01f7947

Browse files
authored
Merge pull request #3760 from dotty-staging/fix-#2310
Fix #2310: Add regression test
2 parents 7cd176f + 0e0b7d9 commit 01f7947

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)