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

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

Open
doherty opened this issue Aug 30, 2015 · 2 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.
Milestone

Comments

@doherty
Copy link

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 Disambiguate package short names in "is not assignable" compile errors 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
Copy link
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
@agnivade agnivade reopened this Jun 30, 2019
@agnivade

This comment has been minimized.

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.
Projects
None yet
Development

No branches or pull requests

5 participants