The escrow example uses an enum for contract state:
pub enum State { Empty, Funded, Released }
But == on enums doesn't work because Eq isn't implemented. The compiler should either auto-derive Eq for simple enums or provide a way to implement it manually without crashing (the match-based workaround panics sonatina).
Tracked upstream: needs Fe compiler support for enum equality.
The escrow example uses an enum for contract state:
But
==on enums doesn't work becauseEqisn't implemented. The compiler should either auto-deriveEqfor simple enums or provide a way to implement it manually without crashing (the match-based workaround panics sonatina).Tracked upstream: needs Fe compiler support for enum equality.