007 reject pub event in impl when k exists

✓ Passing This code compiles and runs correctly.

Code

input.kz

Frontend must reject with:

CONTAINS KORU111
CONTAINS public event in implementation file

Error Verification

Actual Compiler Output

error[KORU111]: public event in implementation file '/Users/larsde/src/koru/tests/regression/100_MODULE_SYSTEM/140_FILE_LAYOUT/140_007_reject_pub_event_in_impl_when_k_exists/contract.kz' when a .k contract companion exists in the same module
  --> tests/regression/100_MODULE_SYSTEM/140_FILE_LAYOUT/140_007_reject_pub_event_in_impl_when_k_exists/input.kz:8:0
    |
  8 | ~import std/io
    | ^
  hint: public event declarations belong in the .k contract — move this ~pub event to the sibling .k file, or drop ~pub if it is internal scaffolding

Flows

flow ~compute click a branch to expand · @labels scroll to their anchor
compute (x: 42)

Imported Files

contract.kz

Test Configuration

MUST_FAIL