Skip to content

Commit d527710

Browse files
committed
Add pos testcase for HKT GADT orderings
1 parent e64d3d1 commit d527710

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/pos/gadt-hkt-ordering.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
object test {
2+
final class HKTVar[+T[_]]
3+
4+
def foo[F[_], G[_], X](m : HKTVar[G]) = m match {
5+
case _ : HKTVar[F] =>
6+
val fx : F[X] = ???
7+
val gx : G[X] = fx
8+
}
9+
10+
}

0 commit comments

Comments
 (0)