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

class C a where
  f :: a -> String

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