Put COMPLETE sigs into ModDetails with -fno-code (#16682)
`mkBootModDetailsTc`, which creates a special `ModDetails` when `-fno-code` is enabled, was not properly filling in the `COMPLETE` signatures from the `TcGblEnv`, resulting in incorrect pattern-match coverage warnings. Easily fixed. Fixes #16682.
Showing
- compiler/main/TidyPgm.hs 15 additions, 14 deletionscompiler/main/TidyPgm.hs
- testsuite/tests/patsyn/should_compile/T16682.hs 5 additions, 0 deletionstestsuite/tests/patsyn/should_compile/T16682.hs
- testsuite/tests/patsyn/should_compile/T16682a.hs 8 additions, 0 deletionstestsuite/tests/patsyn/should_compile/T16682a.hs
- testsuite/tests/patsyn/should_compile/all.T 2 additions, 0 deletionstestsuite/tests/patsyn/should_compile/all.T
Loading
Please register or sign in to comment