-
Notifications
You must be signed in to change notification settings - Fork 18k
variables modified by later parameters are unreliably updated #30801
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
Comments
The result for me on
It seems like a bug on go playground. GO ENV
|
I can reproduce this on my local system too, the play link is for ease of access. |
The evaluation order of non-function expressions and function expressions is not specified in a statement. See |
unfortunate that behaviour changed between releases, but this seems like a pretty clear cut duplicate, thanks @go101 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
play
What did you expect to see?
either:
or
What did you see instead?
The text was updated successfully, but these errors were encountered: