bynk.transition.no_step_reference
Error A transition references neither old nor new; it constrains one state, so it is an invariant, not a step.
A transition constrains a step, so it has to compare the state before the commit (old) with the state after (new). One that mentions neither is a claim about a single state, which an invariant states more plainly and checks the same way. Use old and new, or write it as an invariant.
Example
transition grows: count >= 0 // ✗ names neither `old` nor `new`
transition grows: new.count >= old.count // ✓ compares the two statesIn the Book
See also
- Every code in its category, Transitions (step invariants), on the diagnostic index.
bynk explain bynk.transition.no_step_referenceshows the same from the installed toolchain, without a network.