double unlock

✓ Passing This code compiles and runs correctly.

Code

input.k

Must fail at runtime with:

CONTAINS Use-after-discharge

Error Verification

Actual Compiler Output

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

❌ Compiler coordination error: Phantom semantic validation failed
error: CompilerCoordinationFailed
???:?:?: 0x10438b9d3 in _backend.RuntimeEmitter.emit (???)
???:?:?: 0x10438cb63 in _backend.main (???)

Flows

subflow ~unlock click a branch to expand · @labels scroll to their anchor
print.ln (expr: "unlock {{ name:s }}")
flow ~lock click a branch to expand · @labels scroll to their anchor
lock (name: "m")

Test Configuration

MUST_FAIL