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:
griesemer
changed the title
go/types: avoid "declared but not used" errors for variables in invalid declarations
go/types, cmd/compile/internal/types2: avoid "declared but not used" errors for variables in invalid declarations
Dec 2, 2020
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: