✓
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
Must fail at frontend compile:
Parsing or type-checking must reject the program.
Expected compiler error
error[PARSE003]: branch missing name
--> tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_022_double_pipe_branch/input.kz:5:1
|
5 | || done
| ^