summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/T12127.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2016-06-24 08:59:20 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2016-06-24 11:04:27 +0100
commit393928db9fc35ef8bdeb241c051224a6c4bdf749 (patch)
treefc988d60d6d39c6b2c956164adf47b53c81b4337 /testsuite/tests/rename/should_compile/T12127.hs
parentc871ce4903312402fc7f90089f61977c420e2c60 (diff)
downloadhaskell-393928db9fc35ef8bdeb241c051224a6c4bdf749.tar.gz
Fix renamer panic
This patch fixes Trac #12216 and #12127. The 'combine' function in 'imp_occ_env' in RnNames.filterImports checked for an empty field-selector list, which was (a) unnecessary and (b) wrong. I've elaborated the comments. This does NOT fix #11959 which is related but not the same (it concerns bundling of pattern synonyms).
Diffstat (limited to 'testsuite/tests/rename/should_compile/T12127.hs')
-rw-r--r--testsuite/tests/rename/should_compile/T12127.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T12127.hs b/testsuite/tests/rename/should_compile/T12127.hs
new file mode 100644
index 0000000000..749e4069c9
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/T12127.hs
@@ -0,0 +1,3 @@
+module T12127 where
+
+import T12127a( T(..), C(..) )