bynk.observe.with_not_bool
Error A with predicate does not have type Bool.
The with clause of expect Cap.op called with … filters the recorded calls, keeping those for which it is true, so it must be a Bool. A bare argument name is a value, not a condition. Compare it with something: with msg == "x".
Example
expect Logger.log called with msg // ✗ a `String`, not a `Bool`expect Logger.log called with msg == "x" // ✓In the Book
See also
- Every code in its category, Observation, on the diagnostic index.
bynk explain bynk.observe.with_not_boolshows the same from the installed toolchain, without a network.