summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T16762a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/polykinds/T16762a.hs')
-rw-r--r--testsuite/tests/polykinds/T16762a.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T16762a.hs b/testsuite/tests/polykinds/T16762a.hs
new file mode 100644
index 0000000000..4f56c8b3e9
--- /dev/null
+++ b/testsuite/tests/polykinds/T16762a.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE TypeFamilies, GADTs, DataKinds, PolyKinds, ExplicitForAll #-}
+
+module T16762a where
+
+import Data.Kind
+
+data SameKind :: k -> k -> Type
+
+type family F a
+
+-- This should jolly well be rejected!
+type instance forall a k (b::k). F (SameKind a b) = Int