Skip to content

Commit

Permalink
Merge pull request #14354 from dotty-staging/fix-13855
Browse files Browse the repository at this point in the history
Fix #13855: Add regression test
  • Loading branch information
bishabosha authored Jan 26, 2022
2 parents 50970c1 + c24447d commit 59a3d9c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/pos/13855.scala
Original file line number Diff line number Diff line change
@@ -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 59a3d9c

Please sign in to comment.