diff options
Diffstat (limited to 'testsuite/tests/deSugar/should_compile/ds026.hs')
-rw-r--r-- | testsuite/tests/deSugar/should_compile/ds026.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/ds026.hs b/testsuite/tests/deSugar/should_compile/ds026.hs new file mode 100644 index 0000000000..f21ca0b18b --- /dev/null +++ b/testsuite/tests/deSugar/should_compile/ds026.hs @@ -0,0 +1,14 @@ +-- !!! ds026 -- classes -- incl. polymorphic method + +module ShouldCompile where + +class Foo a where + op :: a -> a + +class Foo a => Boo a where + op1 :: a -> a + +class Boo a => Noo a where + op2 :: (Eq b) => a -> b -> a + +f x y = op (op2 x y) |