Refactor renaming of operators/sections to fix DuplicateRecordFields bugs
A variety of panics were possible because the get_op function in RnTypes didn't handle the possibility that its argument might be an ambiguous record field. I've made its return type more informative to correctly handle occurrences of record fields. Fixes Trac #13132. Test Plan: new test overloadedrecflds/should_fail/T13132_duplicaterecflds Reviewers: bgamari, simonpj, austin Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D3126
Showing
- compiler/rename/RnTypes.hs 52 additions, 22 deletionscompiler/rename/RnTypes.hs
- testsuite/tests/overloadedrecflds/should_fail/T13132_duplicaterecflds.hs 9 additions, 0 deletions.../overloadedrecflds/should_fail/T13132_duplicaterecflds.hs
- testsuite/tests/overloadedrecflds/should_fail/T13132_duplicaterecflds.stderr 6 additions, 0 deletions...rloadedrecflds/should_fail/T13132_duplicaterecflds.stderr
- testsuite/tests/overloadedrecflds/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/overloadedrecflds/should_fail/all.T
Loading
Please register or sign in to comment