Skip to content
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

command style invalid operation mismatched types #1312

Closed
visualfc opened this issue Jun 30, 2022 · 2 comments
Closed

command style invalid operation mismatched types #1312

visualfc opened this issue Jun 30, 2022 · 2 comments

Comments

@visualfc
Copy link
Member

visualfc commented Jun 30, 2022

The following program sample.gop triggers an unexpected result

// add a sample
println (1+2i)*2

Expected result

2+4i

Got

invalid operation: println (1+2i)*2 (mismatched types (n int, err error) and untyped int)

Gop Version

gop v1.1.2

Additional Notes

println((1+2i)*2) // is ok

No response

@visualfc visualfc changed the title complex invalid operation mismatched types command style invalid operation mismatched types Jun 30, 2022
@xushiwei
Copy link
Member

xushiwei commented Jul 1, 2022

bug or not bug? need to make a decision.

@xushiwei xushiwei added the bug label Jul 1, 2022
@xushiwei
Copy link
Member

xushiwei commented Jul 1, 2022

consider as a bug.

xushiwei added a commit that referenced this issue Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants