Programming Language

Nocter

A self-contained systems language built around simplicity, encapsulation, and foolproof design.

/development/compiler/tests/fixtures/source_corpus/invalid/match-non-enum.nct

match-non-enum.nct

// Invalid: `match` requires an enum value.
enum AppError {
    missing_path
}

func main(): i32 {
    match 1 {
        AppError.missing_path {
            return 1
        }
    }

    return 0
}