The derive handler for `DecidableEq` does not currently support proofs in constructor arguments/structure fields. For example, deriving `DecidableEq` for `Fin n` will fail, because of the field `isLt`. This change checks whether the elements being tested are proofs, and if so, changes the equality proof to just `rfl`.
4 lines
22 B
Text
4 lines
22 B
Text
true
|
|
false
|
|
true
|
|
false
|