Skip to content

Clarify a Lint message - Mismatch in type between binder and occurrence

Ben Price requested to merge brprice/ghc:WIP/lint-mismatch-msg into master

In #17803 (closed), it was noted that the lint error only prints the binder's name, which can lead to confusion when debugging shadowing problems (e.g. when the binder is shadowed, so the binder and occurrence have the same Unique but different Names, due to a bugged plugin).

We now print both the binder and occurrence in this situation.

Merge request reports