summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/safeInfered/UnsafeInfered17.hs
blob: 7f17a136ff6ae607b3cad11a81cf9f47bdf42261 (plain)
1
2
3
4
5
6
7
8
9
10
{-# OPTIONS_GHC -fwarn-unsafe -Werror #-}
{-# LANGUAGE FlexibleInstances #-}
module UnsafeInfered17 where

class C a where
  f :: a -> String

instance {-# INCOHERENT #-} C a where
  f _ = "a"