[commit: ghc] ghc-7.8: Test #9415 (typecheck/should_fail/T9415) (d269a4f)

git at git.haskell.org git at git.haskell.org
Mon Dec 15 15:03:52 UTC 2014


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

On branch  : ghc-7.8
Link       : http://ghc.haskell.org/trac/ghc/changeset/d269a4fc56d575ce01f8c0b11f7028421fabe06d/ghc

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

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

    Test #9415 (typecheck/should_fail/T9415)
    
    (cherry picked from commit 1a3e19d061c1e5a1db9789572eca3a0ade450954)


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

d269a4fc56d575ce01f8c0b11f7028421fabe06d
 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 37546d6..1248e03 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -330,3 +330,4 @@ test('T8570', extra_clean(['T85570a.o', 'T8570a.hi','T85570b.o', 'T8570b.hi']),
      multimod_compile_fail, ['T8570', '-v0'])
 test('T8603', normal, compile_fail, [''])
 test('T8912', normal, compile_fail, [''])
+test('T9415', normal, compile_fail, [''])



More information about the ghc-commits mailing list