-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
go/types: complex(0, 0i) should be permitted #11669
Labels
Milestone
Comments
|
I believe this is a go/types bug. 0i is untyped and can be represented as a float32 or float64. The spec could be clearer. |
griesemer
changed the title
cmd/compile: implicitly converts complex constant to integer
go/types: complex(0, 0i) should be permitted
Jul 11, 2015
Closed by mistake. Reopening. |
CL https://golang.org/cl/12860 mentions this issue. |
CL https://golang.org/cl/12937 mentions this issue. |
mk0x9
pushed a commit
to mk0x9/go
that referenced
this issue
Aug 5, 2015
…'imag' For golang#11669, golang#11540, golang#11945, golang#11946, golang#11947. Change-Id: Ifb0053c498cee9f3473c396f9338d82bd856c110 Reviewed-on: https://go-review.googlesource.com/12860 Reviewed-by: Russ Cox <[email protected]> Reviewed-by: Rob Pike <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
gc successfully compiles the following program:
while gotype rejects it with:
go version devel +9b04852 Sat Jul 11 00:08:50 2015 +0000 linux/amd64
The text was updated successfully, but these errors were encountered: