cmd/compile: generic error does not identify relevant type #64276
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Note the difference in errors.
The ordinary parameter error says "not enough arguments in call to t" and then gives the argument types.
The generic error says "got 1 arguments but 2 type parameters" which does not identify the relevant type (T in this case) and is also easily misread to mean "got 1 arguments and got 2 type parameters but these numbers don't match". It would be better for this error to be worded more like the non-generic error. Perhaps:
or even
/cc @griesemer
The text was updated successfully, but these errors were encountered: