Skip to content
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: meaningless error message "truncated to integer" #11371

Closed
griesemer opened this issue Jun 23, 2015 · 1 comment
Closed

cmd/compile: meaningless error message "truncated to integer" #11371

griesemer opened this issue Jun 23, 2015 · 1 comment

Comments

@griesemer
Copy link
Contributor

See issue #11350 for background info. Split out this part as a separate error.

package a
const a int = 1-1/1e100

The error message "constant 1 truncated to integer" error does not make sense. It should be clearer.

@gopherbot
Copy link

CL https://golang.org/cl/35411 mentions this issue.

@golang golang locked and limited conversation to collaborators Mar 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants