032 reject unimplemented event invocation

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must fail at runtime:

Program must error when executed.

Error Verification

Actual Compiler Output

error[KORU047]: event 'input:double' is invoked but has no implementation — without one the compiler would silently stub it to return zero-defaults. Implement it with a proc (`~proc double|zig { ... }`), a bare-return impl (`~double -> <value>`), a branch constructor (`~double => <branch> <value>`), or a subflow (`~double = <flow>`)
  --> tests/regression/000_CORE_LANGUAGE/020_EVENTS_FLOWS/020_032_reject_unimplemented_event_invocation/input.kz:20:0

❌ Compiler coordination error: Validation failed (see errors above)
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/000_CORE_LANGUAGE/020_EVENTS_FLOWS/020_032_reject_unimplemented_event_invocation/backend.zig:95:13: 0x10092f9d3 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/000_CORE_LANGUAGE/020_EVENTS_FLOWS/020_032_reject_unimplemented_event_invocation/backend.zig:202:28: 0x100930b63 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Flows

flow ~double click a branch to expand · @labels scroll to their anchor
double (a: 21)

Test Configuration

MUST_FAIL

Expected Error:

no implementation