cmd/compile: unhelpful error message with recursive constraint #61685
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
generics
Issue is related to generics
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
TypeInference
Issue is related to generic type inference
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
)?N/A
What did you do?
https://go.dev/play/p/WWBorJLIgwe?v=gotip
What did you expect to see?
A more helpful error message.
What did you see instead?
AIUI, the actual error stems from the fact that the receiver type does not match the type in the method argument, but the error message only includes the method signature, which makes it hard to see what the actual problem is, particular in the context of a much larger program.
The text was updated successfully, but these errors were encountered: