✓
Passing This code compiles and runs correctly.
Code
// This should fail: malformed event syntax with missing closing brace
~event broken-syntax { x: i32 | done i32
Must fail at frontend compile:
Parsing or type-checking must reject the program.
Expected compiler error
error[PARSE004]: unmatched '{' in event shape
--> tests/regression/500_INTEGRATION_TESTING/510_NEGATIVE_TESTS/510_020_parse_errors/9101_missing_event_keyword/input.kz:2:1
|
2 | ~event broken-syntax { x: i32 | done i32
| ^
Test Configuration
Expected Error:
error: