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?
to your account
When typechecking a selector, go/types reports the column corresponding to the begin of the selector expression, rather than name being selected:
gotype reports here
The compiler instead reports the missing name:
compiler reports here
The compiler version seems preferable, as it better highlights where the error probably lies. For instance, this is how my editor (that uses go/types) highlights a missing method:
I prepared a quick fix and this is how it looks like once go/types matches column info with the compiler:
I will submit a CL soon.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
@rasky I have assigned this issue for me simply so it stays on my radar. If you end up with a CL, please assign it to me for review; thanks.
Change https://golang.org/cl/104155 mentions this issue: go/types: fix column reporting of invalid selector names
go/types: fix column reporting of invalid selector names
Successfully merging a pull request may close this issue.