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 ab6aa68 commit 196033eCopy full SHA for 196033e
tests/neg/gadt-hkt-hi-bounds.scala
@@ -0,0 +1,8 @@
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]) = e match
7
+ case _: ConstExpr =>
8
+ val i: Int = ??? : F[A] // limitation // error
0 commit comments