004 keyword requires pub

✓ Passing This code compiles and runs correctly.

Code

input.kz

Frontend must reject with:

[keyword] annotation requires 'pub'

Expected compiler error

error[PARSE003]: [keyword] annotation requires 'pub' - only public events can be keywords
  --> tests/regression/300_ADVANCED_FEATURES/330_KEYWORD/330_004_keyword_requires_pub/input.kz:3:1
    |
  3 | 
    | ^

Error Verification

Expected Error Pattern

[keyword] on private event should produce compile error

Actual Compiler Output

error[PARSE003]: [keyword] annotation requires 'pub' - only public events can be keywords
  --> tests/regression/300_ADVANCED_FEATURES/330_KEYWORD/330_004_keyword_requires_pub/input.kz:3:1
    |
  3 | 
    | ^

Test Configuration

MUST_FAIL