-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: generic interface conversion failed, reporting types from different scopes. #52027
Comments
Duplicate with #52026 |
Could it be that this bug is back with 1.18.3? When I compile this code:
With 1.18.2 it runs and has output
Even more strange: If I add a line to .../src/github.com/fractalqb/change/chgsql/type.go:
I can compile and run with 1.18.3 and get as output: |
Since this issue is closed as a duplicate of #52026, and that issue is also closed, it's going to be harder to investigate here. If you're seeing a problem that looks related, please file a new issue and reference these two issues as needed. @cuonglm The only change between those commits is the VERSION file. One possibility is that changing the Go version has effect on cache, so perhaps to investigate further you'll want to be sure to clear relevant Go caches (or use temporary directories for said caches). |
@dmitshur Hmm, what I did:
Same problem happens if I build go from source on branch release-branch.go1.18 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the following code at https://go.dev/play/p/IB1FUMuciDG
What did you expect to see?
No panic.
What did you see instead?
The text was updated successfully, but these errors were encountered: