004 keyword requires pub

✓ Passing This code compiles and runs correctly.

Code

// Test: [keyword] on private event should error
// [keyword] requires pub because private events can't be imported

~[keyword] event private_thing {}

~proc private_thing {
    // This should never run - the error is at parse time
}
input.kz

Test Configuration

MUST_FAIL

Expected Behavior:

FRONTEND_COMPILE_ERROR [keyword] annotation requires 'pub'