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

Bitwise complement operator ~ #261

Closed
rkaderli opened this issue Nov 10, 2022 · 1 comment · Fixed by #265
Closed

Bitwise complement operator ~ #261

rkaderli opened this issue Nov 10, 2022 · 1 comment · Fixed by #265

Comments

@rkaderli
Copy link

I have expression using [Flags]enum type where I would like to reset a bit using like "b = ~a;"

See also https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-and-shift-operators#bitwise-complement-operator-

Is there a way to get this done? opposite operation with | works just fine.

@metoule
Copy link
Contributor

metoule commented Nov 10, 2022

I forgot to handle the unary operators in #237 ... It should be pretty straightforward to implement.

metoule added a commit to metoule/DynamicExpresso that referenced this issue Nov 27, 2022
metoule added a commit that referenced this issue Dec 1, 2022
* Handle unary operator on enums
Fixes #261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants