summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_fail/T16344a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dependent/should_fail/T16344a.hs')
-rw-r--r--testsuite/tests/dependent/should_fail/T16344a.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_fail/T16344a.hs b/testsuite/tests/dependent/should_fail/T16344a.hs
new file mode 100644
index 0000000000..cb4d1a7f21
--- /dev/null
+++ b/testsuite/tests/dependent/should_fail/T16344a.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TypeInType, KindSignatures #-}
+
+module T16344 where
+
+import Data.Kind
+
+-- This one is rejected, but in the typechecking phase
+-- which is a bit nasty.
+-- See Note [No polymorphic recursion] in TcHsType
+
+data T2 ka (a::ka) = MkT2 (T2 Type a)