summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T12151.hs
blob: 8e871bf489aaa23ef74f36dc2cf7d2400a97b622 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE DefaultSignatures #-}
-- {-# LANGUAGE AllowAmbiguousTypes #-} -- Not required with GHC 8.0.1.

module T12151 where

class Put a where
    put :: a

    default put :: t  -- This should be `a` instead of `t`
    put = undefined