Skip to content

Commit bb225d6

Browse files
OlivierBlanvillainolsdavis
authored andcommitted
Fix scala#13855: Add regression test
1 parent b4ee584 commit bb225d6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/pos/13855.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
type A[X] = X match
2+
case Int => Int
3+
case _ => B[X]
4+
5+
def a[X](x: X): A[X] = x match
6+
case v: Int => v
7+
case _ => b(x)
8+
9+
type B[X] = X match
10+
case String => String
11+
12+
def b[X](x: X): B[X] = x match
13+
case v: String => v

0 commit comments

Comments
 (0)