[project @ 1997-06-05 21:36:09 by sof]
[ghc-hetmet.git] / ghc / compiler / tests / typecheck / should_fail / tcfail071.hs
diff --git a/ghc/compiler/tests/typecheck/should_fail/tcfail071.hs b/ghc/compiler/tests/typecheck/should_fail/tcfail071.hs
new file mode 100644 (file)
index 0000000..4958728
--- /dev/null
@@ -0,0 +1,10 @@
+--!!! Mis-matched contexts in a mutually recursive group
+
+module Foo7( f ) where
+
+f :: (Ord c) => c -> c
+f c = g c
+
+g :: c -> c
+g c = c
+  where p = foldr (f c) [] []