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

class C a where
  f :: a -> String

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