-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: int is not a type #50902
Comments
By spec, the two |
It is true that this error message is a bit confusing. Maybe an error message like this would be better: /prog.go:7:9: int is not a valid variable name |
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
@seankhliao Maybe it is a bit soon to close this as a question? The error message really seems confusing, and I think that for Go it always has been a point of pride to provide clear error messages. Certainly in this case the message could be improved. |
|
Duplicate of #20219 |
Well, seeing the discussion in the liked issue i guess it is hard to improve the message. I will let it pass. |
https://go.dev/play/p/Q_9nl4PXV-_3
The text was updated successfully, but these errors were encountered: