[project @ 2000-07-14 16:43:20 by simonpj]
authorsimonpj <unknown>
Fri, 14 Jul 2000 16:43:20 +0000 (16:43 +0000)
committersimonpj <unknown>
Fri, 14 Jul 2000 16:43:20 +0000 (16:43 +0000)
Add mutually recursive kind inference test

ghc/tests/typecheck/should_compile/tc106.hs [new file with mode: 0644]
ghc/tests/typecheck/should_compile/tc106.stderr [new file with mode: 0644]

diff --git a/ghc/tests/typecheck/should_compile/tc106.hs b/ghc/tests/typecheck/should_compile/tc106.hs
new file mode 100644 (file)
index 0000000..aa9a7f8
--- /dev/null
@@ -0,0 +1,12 @@
+{-# OPTIONS -fglasgow-exts #-}
+
+-- !!! Mutually recursive kind inference
+
+module ShouldCompile where
+
+class Lookup c k a where
+    lookupAll :: Sequence seq a => c -> k -> seq a
+
+class Lookup (s a) Int a => Sequence s a where
+    foo :: s a
+
diff --git a/ghc/tests/typecheck/should_compile/tc106.stderr b/ghc/tests/typecheck/should_compile/tc106.stderr
new file mode 100644 (file)
index 0000000..e69de29