summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/T1972.hs
blob: f4067cd1d5d5e8104d62a40c70b985d75b5e0c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{-# LANGUAGE Haskell2010 #-}
{-# OPTIONS_GHC -fwarn-name-shadowing -fwarn-unused-binds #-}

-- #1972

module Temp where

import Data.List (mapAccumL)

data Data = Data {name :: String}

h :: a -> a
h name = name

f mapAccumL x = x

mapAccumL y = y

test x = a+b 
  where
    (a,b,c) = x