HsPat: Assume that no spliced patterns are irrefutable
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 20 Jul 2017 23:24:00 +0000 (19:24 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 20 Jul 2017 23:24:01 +0000 (19:24 -0400)
commit36e8bcba08446dbc4e7532ef9db5517c13977bf9
tree4b46040211993cd0a6f21c50a3bae6c8b9929570
parentccac387bd90da8e1b6998e8480897a0bf0694310
HsPat: Assume that no spliced patterns are irrefutable

This is a conservative assumption which will limit some uses of spliced
patterns, but it fixes #13984.

Test Plan: Validate

Reviewers: RyanGlScott, AaronFriel, austin

Reviewed By: RyanGlScott

Subscribers: rwbarton, thomie

GHC Trac Issues: #13984

Differential Revision: https://phabricator.haskell.org/D3766
compiler/hsSyn/HsPat.hs
testsuite/tests/typecheck/should_compile/T13984.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T