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
Showing
- compiler/hsSyn/HsPat.hs 7 additions, 9 deletionscompiler/hsSyn/HsPat.hs
- testsuite/tests/typecheck/should_compile/T13984.hs 9 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T13984.hs
- testsuite/tests/typecheck/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Loading
Please register or sign in to comment