cmd/compile: internal compiler error when compiling code with unbound method of generic type #53982
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
generics
Issue is related to generics
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?
Does reproduce on
go1.18.4 linux/amd64
, also reproduces on go.dev/playWhat operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Tried to compile this (
go build
):https://go.dev/play/p/WO6ZxYH7P3a
(go playground fails to compile it too)
What did you expect to see?
Either some description of what is wrong with the code or successful compilation.
What did you see instead?
Replacing unbound method (
(*dataWithTimestamp[valueType, value]).Timestamped
) with a function that does pretty much the same (converts*dataWithTimestamp[valueType, value]
toTimestamped[value]
) allows it to compile.The text was updated successfully, but these errors were encountered: