summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_fail/T15487a.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2018-08-20 10:01:16 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2018-08-21 16:03:20 +0100
commit18c302cb3802e485e0837538d7d09e1ac21c3ee2 (patch)
treed2d4d94e4dbb04c8641da63649bd5b6b3329bfca /testsuite/tests/rename/should_fail/T15487a.hs
parentce6ce788251b6102f5c1b878ffec53ba7ad678b5 (diff)
downloadhaskell-18c302cb3802e485e0837538d7d09e1ac21c3ee2.tar.gz
Improve ambiguous-occurrence error message
Trac #15487 correctly reported that the qualification of a Name in an ambiguous-occurrence error message was wrong. This patch fixes it. It's easily done, in RnUtils.addNameClashErrRn The problem was that in complaining about M.x we must enusre that 'M' part is the same as that used in pprNameProvenance.
Diffstat (limited to 'testsuite/tests/rename/should_fail/T15487a.hs')
-rw-r--r--testsuite/tests/rename/should_fail/T15487a.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/T15487a.hs b/testsuite/tests/rename/should_fail/T15487a.hs
new file mode 100644
index 0000000000..e8687eee44
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/T15487a.hs
@@ -0,0 +1 @@
+module T15487a (null) where