go/types, cmd/compile/internal/types2: avoid "declared but not used" errors for variables in invalid declarations #42937
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Reminder/follow-up issue.
Some of these error have been addressed with 274615 in the
dev.typeparams
branch (types2
package only, so far), but not all. Should look into solving this more consistently.For some test cases which could be shorter (no need for
_ = ...
statements), see:There are likely many more.
cc: @findleyr
The text was updated successfully, but these errors were encountered: