You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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:
=>
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: