[commit: ghc] master: Test #9415 (typecheck/should_fail/T9415) (1a3e19d)
git at git.haskell.org
git at git.haskell.org
Tue Aug 12 15:46:15 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/1a3e19d061c1e5a1db9789572eca3a0ade450954/ghc
>---------------------------------------------------------------
commit 1a3e19d061c1e5a1db9789572eca3a0ade450954
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Wed Aug 6 09:54:37 2014 -0400
Test #9415 (typecheck/should_fail/T9415)
>---------------------------------------------------------------
1a3e19d061c1e5a1db9789572eca3a0ade450954
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