summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail150.hs
blob: cc2ca034efe4d59f7ad090cdcb15ac219e77b184 (plain)
1
2
3
4
5
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