x/tools/internal/refactor/inline: missing shadowing check when forming qualified identifiers #62667
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
The inliner fails to detect that the reference to
Split
in thepath.Dir
function, which is turned intopath.Split
in the caller, is shadowed by the parameter namepath
:The fix is to tabulate for each free name all the shadowing definitions (like we do for parameters) and check whether the introduced package name is in that set.
The text was updated successfully, but these errors were encountered: