Skip to content

rnImports: var shouldn't import NoFldSelectors

sheaf requested to merge sheaf/ghc:T23557 into master

In an import declaration such as

import M ( var )

the import of the variable var should not bring into scope record fields named var which are defined with NoFieldSelectors. Doing so can cause spurious "unused import" warnings.

Merge request reports