double unlock

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU030]: Use-after-discharge: binding 'm' was already discharged and cannot be used
  --> tests/regression/830_THE_WORLD/835_double_unlock/input.k:18:0

❌ Compiler coordination error: Phantom semantic validation failed
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must fail at runtime with:

CONTAINS Use-after-discharge

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_ERROR