Handle DuplicateRecordFields correctly in filterImports (fixes #14487)
filterImports needed a small adjustment to correctly handle record field definitions arising from modules with DuplicateRecordFields enabled. Previously hiding fields was not possible with DuplicateRecordFields enabled. Test Plan: new test rename/should_compile/T14487 Reviewers: bgamari Subscribers: simonpj, rwbarton, thomie, carter GHC Trac Issues: #14487 Differential Revision: https://phabricator.haskell.org/D4805
Showing
- compiler/basicTypes/Avail.hs 18 additions, 0 deletionscompiler/basicTypes/Avail.hs
- compiler/rename/RnNames.hs 4 additions, 3 deletionscompiler/rename/RnNames.hs
- compiler/typecheck/TcRnExports.hs 12 additions, 15 deletionscompiler/typecheck/TcRnExports.hs
- testsuite/tests/overloadedrecflds/should_fail/DuplicateExports.hs 9 additions, 0 deletions...e/tests/overloadedrecflds/should_fail/DuplicateExports.hs
- testsuite/tests/overloadedrecflds/should_fail/DuplicateExports.stderr 3 additions, 0 deletions...sts/overloadedrecflds/should_fail/DuplicateExports.stderr
- testsuite/tests/overloadedrecflds/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/overloadedrecflds/should_fail/all.T
- testsuite/tests/rename/should_compile/T14487.hs 7 additions, 0 deletionstestsuite/tests/rename/should_compile/T14487.hs
- testsuite/tests/rename/should_compile/T14487A.hs 7 additions, 0 deletionstestsuite/tests/rename/should_compile/T14487A.hs
- testsuite/tests/rename/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/rename/should_compile/all.T
Loading
Please register or sign in to comment