orleans state without a turn

✓ Passing This code compiles and runs correctly.

Code

input.k

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 (expr: 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")