summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T17566a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/T17566a.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/T17566a.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T17566a.hs b/testsuite/tests/typecheck/should_compile/T17566a.hs
new file mode 100644
index 0000000000..6255a7a7ba
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T17566a.hs
@@ -0,0 +1,15 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE MultiParamTypeClasses #-}
+{-# LANGUAGE PolyKinds #-}
+{-# LANGUAGE TypeFamilies #-}
+module T17566a where
+
+import Data.Kind
+
+class C1 (f :: k -> Type) z where
+ type T1 (x :: f a) :: f a
+ data D1 (x :: f a)
+
+class C2 f z where
+ type T2 (x :: f a) :: f a
+ data D2 (x :: f a)