summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/typecheck/should_fail/T5246.hs
blob: c7b41c0492d45864fd3db0b72b0f800dd436b1c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE ImplicitParams #-}

-- Produced a duplicated error message in 7.0

module T5246 where

foo :: (?x :: Int) => a
foo = undefined

bar = let ?x = "hello"
      in foo