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

class C a where
  f :: a -> String

instance C a where
  f _ = "a"