X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftests%2FdeSugar%2Fds034.hs;fp=ghc%2Fcompiler%2Ftests%2FdeSugar%2Fds034.hs;h=d1f278608b84af3a1a8e816792f279457a5a00d8;hb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;hp=0000000000000000000000000000000000000000;hpb=e48474bff05e6cfb506660420f025f694c870d38;p=ghc-hetmet.git diff --git a/ghc/compiler/tests/deSugar/ds034.hs b/ghc/compiler/tests/deSugar/ds034.hs new file mode 100644 index 0000000..d1f2786 --- /dev/null +++ b/ghc/compiler/tests/deSugar/ds034.hs @@ -0,0 +1,11 @@ +--!!! mutually-recursive methods in an instance declaration +-- +module Test where + +class Foo a where + op1 :: a -> a + op2 :: a -> a + +instance Foo Int where + op1 x = op2 x + op2 y = op1 y