138 effect arm call outside impl rejected

✓ Passing This code compiles and runs correctly.

Code

input.k

Backend must reject with:

CONTAINS error[KORU040]
CONTAINS only that event's own implementation may fire it

Error Verification

Actual Compiler Output

error[KORU040]: 'pong' is an effect arm of event 'input:ping' — only that event's own implementation may fire it
  --> tests/regression/400_RUNTIME_FEATURES/400_138_effect_arm_call_outside_impl_rejected/input.k:19:0

❌ Compiler coordination error: Unknown event referenced
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_138_effect_arm_call_outside_impl_rejected/backend.zig:95:13: 0x102c379d3 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_138_effect_arm_call_outside_impl_rejected/backend.zig:202:28: 0x102c38b63 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Flows

subflow ~ping click a branch to expand · @labels scroll to their anchor
pong (x)
subflow ~other click a branch to expand · @labels scroll to their anchor
pong (x)
flow ~ping click a branch to expand · @labels scroll to their anchor
ping (x: 41)

Test Configuration

MUST_FAIL