MerlinVR / UdonSharp

An experimental compiler for compiling C# to Udon assembly
MIT License
678 stars 89 forks source link

Bitwise operations between uint and integer literals fail to compile #23

Open bdunderscore opened 4 years ago

bdunderscore commented 4 years ago

Describe the bug in detail: The following code fails to compile:

public class GameObject1 : UdonSharpBehaviour
{

    void Start()
    {
        uint q = 0;
        q = (q ^ 1);
    }
}

Provide steps/code to reproduce the bug: See above.

Expected behavior: This code should compile successfully.