Skip to content

Commit 59a3d9c

Browse files
authored
Merge pull request #14354 from dotty-staging/fix-13855
Fix #13855: Add regression test
2 parents 50970c1 + c24447d commit 59a3d9c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/pos/13855.scala

+13
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)