Prioritise Parent when looking up class sub-binder
When we look up children GlobalRdrElts of a given Parent, we sometimes would rather prioritise those GlobalRdrElts which have the right Parent, and sometimes prioritise those that have the right NameSpace: - in export lists, we should prioritise NameSpace - for class/instance binders, we should prioritise Parent See Note [childGREPriority] in GHC.Types.Name.Reader. fixes #23664
Showing
- compiler/GHC/Rename/Env.hs 4 additions, 2 deletionscompiler/GHC/Rename/Env.hs
- compiler/GHC/Tc/Gen/Export.hs 6 additions, 2 deletionscompiler/GHC/Tc/Gen/Export.hs
- compiler/GHC/Types/Name/Reader.hs 65 additions, 17 deletionscompiler/GHC/Types/Name/Reader.hs
- testsuite/tests/rename/should_compile/T23664.hs 7 additions, 0 deletionstestsuite/tests/rename/should_compile/T23664.hs
- testsuite/tests/rename/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/rename/should_compile/all.T
Loading
Please register or sign in to comment