Navigation
This page has not been translated yet. Showing the default language version.

VSC0018: Does not support goto default statement

Property Value
ID VSC0018
Category Compiler
Severity Error
Runtime Version 3.1.0 ~ latest
Compiler Version 1.0.0 ~ latest

Does not support goto default statement

Example

Code with Diagnostic

using UdonSharp;

using UnityEngine;

class TestBehaviour0 : UdonSharpBehaviour
{
    public void TestMethod(int i)
    {
        switch (i)
        {
            case 0:
                Debug.Log("zero");
                goto default;
                ~~~~~~~~~~~~~

            default:
                break;
        }
    }
}

Code with Fix

// NOT YET PROVIDED