cmd/compile: confusing error message for not implementing a pointer to an interface #64838
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go1.21.4 (playground). Also any version since Go 1.18.
What operating system and processor architecture are you using (
go env
)?What did you do?
https://go.dev/play/p/_OT3OvSlSeg
Compile this code.
What did you expect to see?
This is what Go 1.17 and before emit.
What did you see instead?
Specifically, it contains
I does not implement *I
. In the spec "implements" is only used for implementing an interface or a type constraint. There is no "implementing a pointer to an interface". So thisdoes not implement *I
is confusing. We probably want to remove it.The text was updated successfully, but these errors were encountered: