$ gotype x.go
x.go:2:16: invalid argument: 10.0 (untyped float constant 10) must be a complex number
This seems inconsistent with complex(...) which accepts any untyped number as argument as long as it has no imaginary component or that component is zero. Similarly, real and float shouldn't really care about the nature of the untyped constant as long as it's a number.
gccgo accepts the above code w/o error.
The text was updated successfully, but these errors were encountered: