We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4edcea commit ab6aa68Copy full SHA for ab6aa68
tests/pos/gadt-hkt-bounds.scala
@@ -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