We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sample.go
package main import "fmt" func f() complex64 { return complex(0, 0) } func main() { fmt.Println(f()) }
$ go run ./sample.go (0+0i)
$ yaegi ./sample.go run: /Users/marc/sample.go:5:29: cannot use (type complex128T) as type complex64T in return argument
v0.12.0
No response
The text was updated successfully, but these errors were encountered:
interp: allow conversions of untyped complex
f43e41a
For untyped numerical types, conversions to different numerical types can be allowed if there is no overflow (not checked here). Fixes traefik#1402.
6c74ab7
For untyped numerical types, conversions to different numerical types can be allowed if there is no overflow (not checked here). Fixes #1402.
mvertes
Successfully merging a pull request may close this issue.
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
v0.12.0
Additional Notes
No response
The text was updated successfully, but these errors were encountered: