012 reject pub proc

✓ Passing This code compiles and runs correctly.

Code

input.kz

Frontend must reject with:

CONTAINS error[PARSE003
CONTAINS not valid on proc declarations

Expected compiler error

error[PARSE003]: 'pub' is not valid on proc declarations - only events can be public
  --> tests/regression/000_CORE_LANGUAGE/020_EVENTS_FLOWS/020_012_reject_pub_proc/input.kz:8:1
    |
  8 | ~pub proc greet {
    | ^