summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T17021b.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T17021b.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/T17021b.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T17021b.hs b/testsuite/tests/typecheck/should_fail/T17021b.hs
new file mode 100644
index 0000000000..6c9452ca70
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T17021b.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE PolyKinds, TypeFamilies, DataKinds #-}
+
+module T17021b where
+
+import Data.Kind
+
+data family Fix (f :: Type -> k) :: k
+type family F (a :: Type) :: Type where
+ F Int = Type -> Type
+data instance Fix (f :: Type -> F Int) :: F Int