007 reject pub event in impl when k exists

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

Code

input.kz

Supporting Files

contract.k
contract.kz

Actual compiler output

error[KORU111]: public tor 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:6:0
    |
  6 | const std = @import("std");
    | ^
  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

Frontend must reject with:

CONTAINS KORU111
CONTAINS public tor in implementation file

Flows

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

Test Configuration

MUST_ERROR

koru.json: