diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail150.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail150.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail150.hs b/testsuite/tests/typecheck/should_fail/tcfail150.hs new file mode 100644 index 0000000000..cc2ca034ef --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail150.hs @@ -0,0 +1,6 @@ +module ShouldFail where + +-- !!! constraining the type variable in a class head is illegal +-- Simpler version of tcfail149 +class Foo a where + op :: Eq a => a -> a |