diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T5084.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/T5084.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T5084.hs b/testsuite/tests/typecheck/should_fail/T5084.hs new file mode 100644 index 0000000000..0ae39fd71c --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/T5084.hs @@ -0,0 +1,12 @@ +module T5084 where + +-- Superclass method pragma test (fail) +class Foo a where + bar :: a -> a + {-# INLINE bar #-} + +-- Instance test (ok) +instance Foo Int where + bar = (+1) + {-# INLINE bar #-} + |