summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T14045a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/T14045a.hs')
-rw-r--r--testsuite/tests/indexed-types/should_fail/T14045a.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/T14045a.hs b/testsuite/tests/indexed-types/should_fail/T14045a.hs
new file mode 100644
index 0000000000..fc545a8d41
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_fail/T14045a.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE TypeFamilies, PolyKinds, DataKinds, GADTs, FlexibleInstances #-}
+
+module T14045a where
+
+import Data.Kind
+
+class C (a :: k) where
+ data S (a :: k)
+
+instance C (z :: Bool) where
+ data S :: Bool -> Type where
+ SF :: S False
+ ST :: S True