005 reject use after free

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must contain:

Use-after-discharge

Error Verification

Actual Compiler Output

error[KORU030]: Use-after-discharge: binding 's' was already discharged and cannot be used
  --> phantom_semantic_check:6:0

❌ Compiler coordination error: Phantom semantic validation failed
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/600_STDLIB/610_STRING/610_005_reject_use_after_free/backend.zig:94:13: 0x1052621b7 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/600_STDLIB/610_STRING/610_005_reject_use_after_free/backend.zig:190:28: 0x105262ea3 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Test Configuration

MUST_FAIL