Skip to content

Commit ab6aa68

Browse files
committed
Add pos testcase
1 parent e4edcea commit ab6aa68

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/pos/gadt-hkt-bounds.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
type Const = [X] =>> Int
2+
3+
trait Expr[F[_]]
4+
case class ConstExpr() extends Expr[Const]
5+
6+
def foo[F[_], A](e: Expr[F]): F[A] = e match
7+
case _: ConstExpr => 0

0 commit comments

Comments
 (0)