diff options
Diffstat (limited to 'testsuite/tests/rename/should_compile/rn067.hs')
-rw-r--r-- | testsuite/tests/rename/should_compile/rn067.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/rn067.hs b/testsuite/tests/rename/should_compile/rn067.hs new file mode 100644 index 0000000000..d0e2d2ede2 --- /dev/null +++ b/testsuite/tests/rename/should_compile/rn067.hs @@ -0,0 +1,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 |