Skip to content

Commit

Permalink
Fix scala#13855: Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierBlanvillain committed Jan 26, 2022
1 parent 74d1b82 commit c24447d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/pos/13855.scala
@@ -0,0 +1,13 @@
type A[X] = X match
case Int => Int
case _ => B[X]

def a[X](x: X): A[X] = x match
case v: Int => v
case _ => b(x)

type B[X] = X match
case String => String

def b[X](x: X): B[X] = x match
case v: String => v

0 comments on commit c24447d

Please sign in to comment.