✓
Passing This code compiles and runs correctly.
Code
// Test: Branch without a name (empty identifier)
// Expected: Parser rejects with "invalid branch name"
~event foo { x: i32 }
| {}
Expected Output
error[PARSE003]: invalid branch name '' - must be a valid identifier
--> tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_023_branch_without_name/input.kz:5:1
|
5 | ~event foo { x: i32 }
| ^
Test Configuration
Expected Behavior:
FRONTEND_COMPILE_ERROR