006 reject private event in contract

✓ Passing This code compiles and runs correctly.

Code

input.kz

Frontend must reject with:

CONTAINS KORU111
CONTAINS private event in contract file

Error Verification

Actual Compiler Output

error[KORU111]: private event in contract file '/Users/larsde/src/koru/tests/regression/100_MODULE_SYSTEM/140_FILE_LAYOUT/140_006_reject_private_event_in_contract/contract.k'
  --> tests/regression/100_MODULE_SYSTEM/140_FILE_LAYOUT/140_006_reject_private_event_in_contract/input.kz:7:0
    |
  7 | ~import std/io
    | ^
  hint: events declared in a .k contract file must be ~pub; either add ~pub or move this declaration to a non-.k implementation file

Flows

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

Imported Files

contract.kz

Test Configuration

MUST_FAIL