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

cmd/compile: disambiguate package short names in "is not assignable" compile errors #12399

Open
doherty opened this Issue Aug 30, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@doherty

doherty commented Aug 30, 2015

I wrote some code that produced the following error in:

call.go:83: wrong type of argument 0 to Return for *mock_codesearch.MockCodesearcher.FindManifestsByNodeName: []codesearch.Result is not assignable to []codesearch.Result

I was confused because those two types are the same. Then I realized that on the left, codesearch referred to google3/releasetools/rpdb/common/codesearch while on the right it referred to google3/social/automation/tools/actuators/codesearch.

When the short package names are the same, the long name should be used in this "is not assignable" error message, as is done in other cases.

@minux minux changed the title from Disambiguate package short names in "is not assignable" compile errors to cmd/compile: disambiguate package short names in "is not assignable" compile errors Aug 30, 2015

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Aug 30, 2015

@rsc

This comment has been minimized.

Contributor

rsc commented Dec 5, 2015

Would be nice but we won't get to it for Go 1.6.

@rsc rsc modified the milestones: Unplanned, Go1.6 Dec 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment