summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn067.hs
blob: d0e2d2ede2e663c2b6dda26bf06af75dea4db9af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

module ShouldCompile where

import Rn067_A

x = 'a'

-- The use of x here should not be reported as ambiguous, as it refers
-- to the local variable.
--
-- hugs Sept 2006 says:
--
-- ERROR "rn067.hs":14 - Ambiguous variable occurrence "x"
test = let x = "" in x