We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 version
go1.10rc1 linux/amd64
Yes, and with tip. (851e98f)
go env
Ubuntu 16.04.
Attempting to use go/types to do fast type checking of a large repository reveals a problem:
go/types
func a() { var x int func() { x = 3 }() }
Is reported as x declared but not used by go/types, but does not produce an error in the compiler.
x declared but not used
Demo: https://play.golang.org/p/oi6haYy6cXt
I expected go/types to return identical type errors as actually compiling.
Different errors.
The text was updated successfully, but these errors were encountered:
Dup of #8560?
Sorry, something went wrong.
Closing as dup.
No branches or pull requests
What version of Go are you using (
go version
)?go1.10rc1 linux/amd64
Does this issue reproduce with the latest release?
Yes, and with tip. (851e98f)
What operating system and processor architecture are you using (
go env
)?Ubuntu 16.04.
What did you do?
Attempting to use
go/types
to do fast type checking of a large repository reveals a problem:Is reported as
x declared but not used
bygo/types
, but does not produce an error in the compiler.Demo: https://play.golang.org/p/oi6haYy6cXt
What did you expect to see?
I expected go/types to return identical type errors as actually compiling.
What did you see instead?
Different errors.
The text was updated successfully, but these errors were encountered: