cmd/compile: type inference could be less strict when there are interface arguments #40055
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.
TypeInference
Issue is related to generic type inference
Milestone
The following program fails:
The error is:
Although it's true that the types don't match exactly, it seems to me that it might be nice
to allow the type argument to unify to
interface{}
in the same way that we allowa concrete type to be passed to an interface type.
The text was updated successfully, but these errors were encountered: