cmd/compile: no need to infer type arguments for blank type parameters with any
constraint
#50547
Labels
FrozenDueToAge
generics
Issue is related to generics
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
TypeInference
Issue is related to generic type inference
Milestone
produces the error
but blank type parameters can't be used and thus it doesn't matter what their corresponding argument is if the constraint is
any
(any type will satisfy that constraint). If the constraint is notany
we should still infer the type argument so we can verify constraint satisfaction.Maybe we shouldn't report an error in this case. Or maybe this is so esoteric that is doesn't matter. Filing this issue so we document decision (and perhaps implement it).
cc: @ianlancetaylor @findleyr for input
The text was updated successfully, but these errors were encountered: