bynk.invariant.not_bool
Error An invariant predicate does not have type Bool.
An invariant is a claim that is true or false of every committed state, so its predicate must be a Bool. A bare field such as count is a value, not a claim, and nothing says what is being asserted about it. Compare or test it: count >= 0. A transition is held to the same rule (bynk.transition.not_bool).
Example
invariant positive: count // ✗ an `Int`, not a `Bool`
invariant positive: count >= 0 // ✓ a claim about `count`In the Book
See also
- Every code in its category, Other, on the diagnostic index.
bynk explain bynk.invariant.not_boolshows the same from the installed toolchain, without a network.