004 keyword requires pub

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.kz

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:4:1
    |
  4 | ~[keyword] tor private-thing {}
    | ^

Frontend must reject with:

CONTAINS error[PARSE003
CONTAINS 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:4:1
    |
  4 | ~[keyword] tor private-thing {}
    | ^

Test Configuration

MUST_ERROR