-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Postfix increment and decrement operator not working #10
Comments
Also |
Oh that must be because it evaluates to the negation of the negation of. Should be super easy to implement prefix decrement since there's already an implementation of ++var. PR welcome. If you do add a PR, make sure to add one or more tests as well. There are tests in codegen.rs and under |
At the moment we have pre-increment but not post-increment because it's slightly trickier to implement. PR welcome. |
Just added prefix decrement, |
Prefix increment/decrement operator seems to be working fine but postfix increment/decrement operator throws error.
Code to reproduce
This behaviour is not limited to any type. Was able to reproduce this for pointers was well in similar fashion
The text was updated successfully, but these errors were encountered: