orleans state without a turn

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

Code

input.k

Actual compiler output

error[KORU030]: Phantom state mismatch: argument 'turn' has no tracked phantom state, but this event requires state '<exclusive>'.
  --> tests/regression/830_THE_WORLD/853_orleans_state_without_a_turn/input.k:40:0

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

Must fail at runtime with:

CONTAINS has no tracked phantom state

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (grain, capacity: 1, source: count: 0[i64])
subflow ~turn.end click a branch to expand · @labels scroll to their anchor
print.ln (expr: " turn {{ turn:s }} ends")
subflow ~state.bump click a branch to expand · @labels scroll to their anchor
stored (source: grain.count: grain.count + 1)
subflow ~call.blocking click a branch to expand · @labels scroll to their anchor
print.ln (expr: " await {{ target:s }} — non-reentrant, turn held")
flow ~state.bump click a branch to expand · @labels scroll to their anchor
state.bump (turn: "made-up")

Test Configuration

MUST_ERROR