Use data con name instead of parent in lookupRecFieldOcc
authorAdam Gundry <adam@well-typed.com>
Fri, 15 Jun 2018 18:11:22 +0000 (14:11 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 15 Jun 2018 18:11:39 +0000 (14:11 -0400)
commit7100850eebb1c1aec0aaabca08915bac8b90e188
treef3c1928540b660af6f4691662e6a0cd144b5536c
parent9c89ef39f54943dd3fcd9d196ce1a5bdf7f5f94b
Use data con name instead of parent in lookupRecFieldOcc

Test Plan: new tests rename/should_compile/{T14747,T15149}

Reviewers: simonpj, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #14747, #15149

Differential Revision: https://phabricator.haskell.org/D4821
compiler/rename/RnEnv.hs
compiler/rename/RnPat.hs
testsuite/tests/rename/should_compile/T14747.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T14747A.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T15149.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T15149A.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T15149B.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T15149C.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/all.T
testsuite/tests/rename/should_fail/T8448.stderr