cmd/compile: report variable declared but not used when only a field of a struct-typed variable is written to #50778
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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
Output:What did you do?
It is desired that an error be reported when running go vet/build with the following code:
What did you expect to see?
myUrl declared but not used
What did you see instead?
No error.
The text was updated successfully, but these errors were encountered: