cmd/compile: internal compiler error: cannot call SetType(go.shape.int) on v (type int) #59378
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
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 was working on a package that uses generics. I changed a call from
slices.ContainsFunc
toslices.IndexFunc
and it stopped compiling. The actual code was fairly complicated, but I've reduced it down to this nonsensical repro:https://go.dev/play/p/-3mq-tXI8lI
What did you expect to see?
I expected the code to keep compiling.
What did you see instead?
The text was updated successfully, but these errors were encountered: