Test #9201 in typecheck/should_fail/T9201
authorRichard Eisenberg <eir@cis.upenn.edu>
Tue, 18 Nov 2014 18:19:42 +0000 (13:19 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Thu, 20 Nov 2014 20:27:29 +0000 (15:27 -0500)
testsuite/tests/typecheck/should_fail/T9201.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T9201.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T

diff --git a/testsuite/tests/typecheck/should_fail/T9201.hs b/testsuite/tests/typecheck/should_fail/T9201.hs
new file mode 100644 (file)
index 0000000..7702fa3
--- /dev/null
@@ -0,0 +1,6 @@
+{-# LANGUAGE PolyKinds, FunctionalDependencies, MultiParamTypeClasses #-}
+
+module T9201 where
+
+class MonoidalCCC (f :: x -> y) (d :: y -> y -> *) | f -> d where
+  ret :: d a (f a)
diff --git a/testsuite/tests/typecheck/should_fail/T9201.stderr b/testsuite/tests/typecheck/should_fail/T9201.stderr
new file mode 100644 (file)
index 0000000..44e338a
--- /dev/null
@@ -0,0 +1,6 @@
+
+T9201.hs:6:17:
+    The first argument of ‘f’ should have kind ‘x1’,
+      but ‘a’ has kind ‘y1’
+    In the type ‘d a (f a)’
+    In the class declaration for ‘MonoidalCCC’
index b6b5572..14df71e 100644 (file)
@@ -343,3 +343,4 @@ test('T9634', normal, compile_fail, [''])
 test('T9739', normal, compile_fail, [''])
 test('T9774', normal, compile_fail, [''])
 test('T9318', normal, compile_fail, [''])
+test('T9201', normal, compile_fail, [''])