Test #9415 (typecheck/should_fail/T9415)
authorRichard Eisenberg <eir@cis.upenn.edu>
Wed, 6 Aug 2014 13:54:37 +0000 (09:54 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Tue, 12 Aug 2014 15:46:20 +0000 (11:46 -0400)
testsuite/tests/typecheck/should_fail/T9415.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T9415.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T

diff --git a/testsuite/tests/typecheck/should_fail/T9415.hs b/testsuite/tests/typecheck/should_fail/T9415.hs
new file mode 100644 (file)
index 0000000..db77ff0
--- /dev/null
@@ -0,0 +1,5 @@
+module T9415 where
+
+class D a => C a where
+  meth :: D a => ()
+class C a => D a
diff --git a/testsuite/tests/typecheck/should_fail/T9415.stderr b/testsuite/tests/typecheck/should_fail/T9415.stderr
new file mode 100644 (file)
index 0000000..516759e
--- /dev/null
@@ -0,0 +1,8 @@
+
+T9415.hs:3:1:
+    Cycle in class declaration (via superclasses): C -> D -> C
+    In the class declaration for ā€˜Cā€™
+
+T9415.hs:5:1:
+    Cycle in class declaration (via superclasses): D -> C -> D
+    In the class declaration for ā€˜Dā€™
index b528047..4f001f5 100644 (file)
@@ -333,3 +333,4 @@ test('T8883', normal, compile_fail, [''])
 test('T9196', normal, compile_fail, [''])
 test('T9305', normal, compile_fail, [''])
 test('T9323', normal, compile_fail, [''])
+test('T9415', normal, compile_fail, [''])