x/tools/go/analysis/passes/shadow: is confused by newtypes #49652
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
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
Reproducer
https://play.golang.org/p/Xx4xqdtocit
Expected
Got
Details
If I remove the type conversions, the result is as expected.
OS, Versions, And So On
Formalities
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputThe text was updated successfully, but these errors were encountered: