062 reject identity struct mismatch

✓ Passing This code compiles and runs correctly.

Code

input.kz

Error Verification

Actual Compiler Output

error[KORU030]: Resource 'c2' <active!> was not discharged. Call: commit
  --> auto_discharge:53:0

❌ Compiler coordination error: Auto-discharge failed (multiple disposal options or no disposal event)
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_062_reject_identity_struct_mismatch/backend.zig:95:13: 0x10445b9d3 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_062_reject_identity_struct_mismatch/backend.zig:202:28: 0x10445cb63 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Flows

flow ~connect click a branch to expand · @labels scroll to their anchor
connect (host: "localhost")

Test Configuration

MUST_FAIL

Post-validation Script: