cmd/compile: bad error message for argument missing type #69506
Labels
BadErrorMessage
Issues related compiler error messages that should be better.
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
1.23
Output of
go env
in your module/workspace:What did you do?
https://go.dev/play/p/hgKdYn08tsY
I forgot to add the type to the last argument of a function definition:
This should have some type name after
b
.What did you see happen?
What did you expect to see?
All parameters are named here, the actual problem is the missing type, so I expected something like: "syntax error: parameter 'b' missing type"
The text was updated successfully, but these errors were encountered: