Don't lint erroneous programs.
newFamInst lints its types. This is good. But it's not so good when there have been errors and thus recovery tycons are about. So we now don't. Fixes #15796. Test case: typecheck/should_fail/T15796 (cherry picked from commit 1f72a1c8)
Showing
- compiler/typecheck/FamInst.hs 5 additions, 2 deletionscompiler/typecheck/FamInst.hs
- testsuite/tests/typecheck/should_fail/T15796.hs 8 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T15796.hs
- testsuite/tests/typecheck/should_fail/T15796.stderr 6 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T15796.stderr
- testsuite/tests/typecheck/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_fail/all.T
Please register or sign in to comment