You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
khepri_machine: Fix comparison between opaque khepri_machine:state() terms
[Why]
`khepri_machine:state()` can be either a `state_v0()` or a `state_v1()`
which are both opaque types. Therefore, they can't simply be compared
with =:= because it violates the contract that a e.g. a `state_v0()`
can't be compared to a `state_v1()` without knowing their internals.
This was reported by Dialyzer in Erlang/OTP 28.
[How]
We add an assert function to both `khepri_machine` and
`khepri_machine_v0`. They can inspect their respective version of the
state because they define it.
0 commit comments