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
match c generation is wrong.
It should print
false true
It prints
false false
fn main() { mut a := true b := a && match true { true { a = false true } false { false } } println(a) println(b) }
Same as here: #11182
No response
0.3.2
Windows
The text was updated successfully, but these errors were encountered:
@yuyi98
Sorry, something went wrong.
Thanks ! I'll try.
cgen: fix error of match expr (fix #16554) (#16555)
fd04c1a
cgen: fixevaluation order for match expressions inside boolean ones (fix
68fb4e9
#16554) (#16616)
Successfully merging a pull request may close this issue.
Describe the bug
match c generation is wrong.
Expected Behavior
It should print
false
true
Current Behavior
It prints
false
false
Reproduction Steps
Possible Solution
Same as here: #11182
Additional Information/Context
No response
V version
0.3.2
Environment details (OS name and version, etc.)
Windows
The text was updated successfully, but these errors were encountered: