x/tools/go/analysis/passes/shadow: go vet shadow strict doesn't check global constant shadowing #72943
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
BugReport
Issues describing a possible bug in the Go implementation.
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Go version
go version go1.24.0 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
go vet -vettool="$(which shadow)" -strict .
What did you see happen?
no output
What did you expect to see?
./vet.go:11:2: declaration of "testStr" shadows declaration at line 5
The text was updated successfully, but these errors were encountered: