Fix collect_lpat's treatment of HsSplicedPats
authorRyan Scott <ryan.gl.scott@gmail.com>
Thu, 11 May 2017 19:46:02 +0000 (15:46 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 11 May 2017 21:33:12 +0000 (17:33 -0400)
commiteaf9cc4240019c2e91922ef38ae7236b59d59bdd
treeb90ed99633d2094dea9dec8dd2e98416cc929615
parent2277172ac3ea0bbeddebc9999a5d8b5f9f58afc9
Fix collect_lpat's treatment of HsSplicedPats

`collect_lpat` was missing a case for `HsSplicedPat`, which caused
incorrect renaming of TH-spliced pattern variables.

Fixes #13473.

Test Plan: make test TEST=T13473

Reviewers: facundominguez, austin, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #13473

Differential Revision: https://phabricator.haskell.org/D3572
compiler/hsSyn/HsUtils.hs
testsuite/tests/th/T13473.hs [new file with mode: 0644]
testsuite/tests/th/T13473.stdout [new file with mode: 0644]
testsuite/tests/th/T13473a.hs [new file with mode: 0644]
testsuite/tests/th/all.T