summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T8392a.hs
blob: 40fd339805b0cbfdeb37af97caf5333604ea36f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE GADTs, AllowAmbiguousTypes #-}
module T8392a where

-- Should complain even with AllowAmbiguousTypes
--
-- But (#12466) we now don't complain about
-- contradictory signatures
-- Instead we get a redundant pattern-match warning,
-- in the post-typechecking pattern-match checks
foo :: (Int ~ Bool) => a -> a
foo x = x