[commit: ghc] wip/rae: Test #9415 (typecheck/should_fail/T9415) (e2231ec)

git at git.haskell.org git at git.haskell.org
Fri Aug 8 18:58:09 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/rae
Link       : http://ghc.haskell.org/trac/ghc/changeset/e2231ec2f769092a0b213992fccb36cf6f4482e7/ghc

>---------------------------------------------------------------

commit e2231ec2f769092a0b213992fccb36cf6f4482e7
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Wed Aug 6 09:54:37 2014 -0400

    Test #9415 (typecheck/should_fail/T9415)


>---------------------------------------------------------------

e2231ec2f769092a0b213992fccb36cf6f4482e7
 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 cf2af30..85f5052 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -336,3 +336,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