022 double pipe branch

✓ Passing This code compiles and runs correctly.

Code

// Test: Double pipe before branch name
// Expected: Parser rejects with "invalid branch name"

~event foo { x: i32 }
|| done {}
input.kz

Expected Output

error[PARSE003]: invalid branch name '| done' - must be a valid identifier
  --> tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_022_double_pipe_branch/input.kz:5:1
    |
  5 | ~event foo { x: i32 }
    | ^

Test Configuration

Expected Behavior:

FRONTEND_COMPILE_ERROR