Skip to content

Commit 196033e

Browse files
committed
Add neg test
1 parent ab6aa68 commit 196033e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/neg/gadt-hkt-hi-bounds.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)