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: dictionary for [...] should only use concrete types #52181
Comments
Ran into this with |
At least in 1.18.0, retrying does not seem to solve the issue. We had to add an exception rule in our CI to allow the test to fail. Since I posted this, it has run hundreds of times and it has never worked. |
Running into this one too with debug builds inside Goland. |
This appears to work correctly at tip, so another CL must have fixed it. I don't see any other issue reports mentioning the same error message though. I'm also not able to reproduce the issue except with |
If anyone wants to bisect the CL that fixed the issue, that would be useful information. |
The bisect shows that 5b4fafd is the commit that fixes this issue. |
Thanks. Closing. Please comment if you disagree. |
Can be easily reproduced using golang
|
I can also reproduce this consistently, when importing |
The commit 5b4fafd that fixes this issue is in go 1.19. I just confirmed that the original issue does not reproduce in go 1.19. I have tried to cherry-pick the commit to the |
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?
I used a complicated mess of generics, interfaces, and maps. Then, tried to run a unit test with the
--race
flag.I've only managed to reproduce this using 2 different packages.
file at
/[your project]/pkg/application/bug/bug_test.go
file at
/[your project]/pkg/application/other/entities.go
With these files, run:
go test --race ./pkg/application/bug --short
What did you expect to see?
The same that I see without the
--race
flag:What did you see instead?
the output of
go test --race ./pkg/application/bug --short
is:The text was updated successfully, but these errors were encountered: