summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/tests/polykinds/T14847.hs17
-rw-r--r--testsuite/tests/polykinds/all.T1
2 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T14847.hs b/testsuite/tests/polykinds/T14847.hs
new file mode 100644
index 0000000000..3474fe069c
--- /dev/null
+++ b/testsuite/tests/polykinds/T14847.hs
@@ -0,0 +1,17 @@
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeInType #-}
+module T14847 where
+
+data Proxy k (a :: k) = MkProxy
+data Proxy2 k a = MkP (Proxy k a)
+
+data Proxy2' k a where
+ MkP' :: Proxy k a -> Proxy2' k a
+
+data T a where
+ T :: Int -> T Bool
+
+type family F a where
+ F Int = True
+ F _ = False
diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T
index 8be2c59bf0..18eb8a5d7d 100644
--- a/testsuite/tests/polykinds/all.T
+++ b/testsuite/tests/polykinds/all.T
@@ -203,3 +203,4 @@ test('T15881a', normal, compile_fail, [''])
test('T15817', normal, compile, [''])
test('T15874', normal, compile, [''])
test('T14887a', normal, compile, [''])
+test('T14847', normal, compile, [''])