x/tools: shadow analyzer does not consider variables declared in for-range statement #44986
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
FeatureRequest
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
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Installed and ran the shadow analyzer on a file witht the contents below:
No warning was generated
What did you expect to see?
A message similar to:
What did you see instead?
No output from the shadow tool.
The text was updated successfully, but these errors were encountered: