summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_fail/T13780c.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dependent/should_fail/T13780c.hs')
-rw-r--r--testsuite/tests/dependent/should_fail/T13780c.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_fail/T13780c.hs b/testsuite/tests/dependent/should_fail/T13780c.hs
new file mode 100644
index 0000000000..78e09f5ef1
--- /dev/null
+++ b/testsuite/tests/dependent/should_fail/T13780c.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE DataKinds, PolyKinds #-}
+module T13780c where
+
+import Data.Kind
+import T13780b
+
+type family ElimBool (p :: Bool -> Type) (b :: Bool) (s :: Sing b)
+ (pFalse :: p False) (pTrue :: p True) :: p b where
+ ElimBool _ _ SFalse pFalse _ = pFalse
+ ElimBool _ _ STrue _ pTrue = pTrue