Skip to content

Commit b5bb7ce

Browse files
committed
Another case fixed by inferring GADT bounds
1 parent 531bf4d commit b5bb7ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/pos/i13548.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// scalac: -Werror
2+
sealed abstract class Foo[N, A]
3+
final case class Bar[B](foo: Foo[B, B]) extends Foo[B, B]
4+
class Test:
5+
def pmat[P, C](scr: Foo[P, C]): C = scr match
6+
case Bar(foo) => pmat(foo)

0 commit comments

Comments
 (0)