-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: duplicate error on int("1") bad cast #20812
Labels
Milestone
Comments
Can I have a go at this? |
@kshvmdn, always. No need to ask. |
@bradfitz cool, thanks! @ALTree for the record, this is effecting more than just int casts (re: issue title): func main() {
var _ = bool(0)
var _ = bool("false")
var _ = int(false)
var _ = string(true)
}
|
CL https://golang.org/cl/46912 mentions this issue. |
/cc @griesemer @mdempsky for awareness during Go1.10. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
The following
prints (in go1.6, go1.7, go1.8 and go1.9beta2)
Printing the same error message two times is unnecessary. Note that
[]int("a")
(and variations) only print one.The text was updated successfully, but these errors were encountered: