Drop module qualifier from punned record fields (#11662)
A record pattern match, construction or update like `Rec { Mod.f }` should expand to `Rec { Mod.f = f }` rather than `Rec { Mod.f = Mod.f }`. Test Plan: New test rename/should_compile/T11662 Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: hesselink, thomie Differential Revision: https://phabricator.haskell.org/D1965 GHC Trac Issues: #11662
Showing
- compiler/rename/RnPat.hs 6 additions, 2 deletionscompiler/rename/RnPat.hs
- testsuite/tests/rename/should_compile/T11662.hs 14 additions, 0 deletionstestsuite/tests/rename/should_compile/T11662.hs
- testsuite/tests/rename/should_compile/T11662_A.hs 3 additions, 0 deletionstestsuite/tests/rename/should_compile/T11662_A.hs
- testsuite/tests/rename/should_compile/all.T 4 additions, 0 deletionstestsuite/tests/rename/should_compile/all.T
Loading
Please register or sign in to comment