MerlinVR / UdonSharp

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

Nullpo with conditional expression #131

Closed ikuko closed 2 years ago

ikuko commented 2 years ago

A null reference occurs when I write the following U# code I don't understand how UdonSharp works in detail, so this fix may not be correct

public class test15 : UdonSharpBehaviour
{
    private void Start()
    {
        enabled = true ? true : val;
    }

    public bool val => true;
}