Project 'TerrorJack/ghc' was moved to 'haskell-wasm/ghc'. Please update any links and bookmarks that may still have the old path.
Tidy up error suppression
Trac #15152 showed that when a flag turned an error into a warning, we were still (alas) suppressing subequent errors; includign their essential addTcEvBind. That led (rightly) to a Lint error. This patch fixes it, and incidentally tidies up an ad-hoc special case of out-of-scope variables (see the old binding for 'out_of_scope_killer' in 'tryReporters'). No test, because the problem was only shown up when turning inaccessible code into a warning.
Showing
- compiler/typecheck/TcErrors.hs 33 additions, 23 deletionscompiler/typecheck/TcErrors.hs
- testsuite/tests/partial-sigs/should_fail/T14584.stderr 11 additions, 0 deletionstestsuite/tests/partial-sigs/should_fail/T14584.stderr
- testsuite/tests/partial-sigs/should_fail/T14584a.stderr 13 additions, 0 deletionstestsuite/tests/partial-sigs/should_fail/T14584a.stderr
Loading
Please register or sign in to comment