Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/types, cmd/compile/internal/types2: avoid "declared but not used" errors for variables in invalid declarations #42937

Open
griesemer opened this issue Dec 2, 2020 · 0 comments
Assignees
Milestone

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented 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:

test/fixedbugs/bug062.go
test/fixedbugs/bug131.go
test/fixedbugs/bug175.go
test/fixedbugs/bug289.go
test/interface/pointer.go

There are likely many more.

cc: @findleyr

@griesemer griesemer added this to the Go1.17 milestone Dec 2, 2020
@griesemer griesemer self-assigned this Dec 2, 2020
@griesemer 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.