state variable constraint violation

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must contain:

branches are not handled

Error Verification

Actual Compiler Output

error[KORU022]: event 'app.data:process' invoked in pipeline but its branches are not handled
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/524_state_variable_constraint_violation/input.kz:3:0

error[KORU022]: branch 'done' must be handled but no continuation found
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/524_state_variable_constraint_violation/input.kz:3:0

❌ Compiler coordination error: Incomplete branch coverage
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/524_state_variable_constraint_violation/backend.zig:94:13: 0x10262738b in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/524_state_variable_constraint_violation/backend.zig:190:28: 0x102628077 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Imported Files

data.kz
processor.kz

Test Configuration

MUST_FAIL