[commit: ghc] wip/rae: Test #9415 (typecheck/should_fail/T9415) (554f08e)
git at git.haskell.org
git at git.haskell.org
Fri Aug 8 18:59:55 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/rae
Link : http://ghc.haskell.org/trac/ghc/changeset/554f08e49d1b73fa07a97646b797b1cb058c02ec/ghc
>---------------------------------------------------------------
commit 554f08e49d1b73fa07a97646b797b1cb058c02ec
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Wed Aug 6 09:54:37 2014 -0400
Test #9415 (typecheck/should_fail/T9415)
>---------------------------------------------------------------
554f08e49d1b73fa07a97646b797b1cb058c02ec
testsuite/tests/typecheck/should_fail/T9415.hs | 5 +++++
testsuite/tests/typecheck/should_fail/T9415.stderr | 8 ++++++++
testsuite/tests/typecheck/should_fail/all.T | 1 +
3 files changed, 14 insertions(+)
diff --git a/testsuite/tests/typecheck/should_fail/T9415.hs b/testsuite/tests/typecheck/should_fail/T9415.hs
new file mode 100644
index 0000000..db77ff0
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T9415.hs
@@ -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
index 0000000..516759e
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T9415.stderr
@@ -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’
diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T
index b528047..4f001f5 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -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, [''])
More information about the ghc-commits
mailing list