diff --git a/ghc/tests/typecheck/should_compile/tc106.hs b/ghc/tests/typecheck/should_compile/tc106.hs new file mode 100644 index 0000000000000000000000000000000000000000..aa9a7f804de519eb06a744aafcdaa058fc5202ad --- /dev/null +++ b/ghc/tests/typecheck/should_compile/tc106.hs @@ -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 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391