vrchat-community / UdonSharp

A compiler for compiling C# to Udon assembly
https://udonsharp.docs.vrchat.com
MIT License
462 stars 50 forks source link

Enum types do not have bitwise operators defined #77

Open ParapetCloud opened 1 year ago

ParapetCloud commented 1 year ago

Describe the bug in detail: Can not use bitwise and (&) or bitwise or (|) with enums.

Provide steps/code to reproduce the bug: Define an enum and somewhere in a udon behavior use the bitwise operators.

Expected behavior: Should behave like ints and combine the two values rather than compiler errors

Additional Information:

image