1 2 3 4 5 6 7
{-# LANGUAGE GADTs, AllowAmbiguousTypes #-} module T8392a where -- Should complain even with AllowAmbiguousTypes foo :: (Int ~ Bool) => a -> a foo x = x