Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
sheaf's avatar
sheaf authored
This commit fixes the bug reported in #24035 in which the import of a
duplicate record field could be erroneously reported as unused.

The issue is that an import of the form "import M (fld)" can import
several different 'Name's, and we should only report an error if ALL
of those 'Name's are unused, not if ANY are.

Note [Reporting unused imported duplicate record fields]
in GHC.Rename.Names explains the solution to this problem.

Fixes #24035
0cb1db92
History
Name Last commit Last update