Skip to content

Commit ae3f58e

Browse files
authored
Merge pull request #12302 from dotty-staging/fix-9849
Fix #9849: Add regression test
2 parents a1042c1 + 4019f86 commit ae3f58e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/pos-deep-subtype/9849.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
type *:[A, B] = A match
2+
case (B *: x) => A
3+
case (x *: y) => x *: (B *: y)
4+
case _ => A *: B

0 commit comments

Comments
 (0)