Idris2/tests/idris2/coverage012/Issue484.idr
Guillaume ALLAIS 741960f0d1 [ test ] case for #484
This issue was fixed by #1081
2021-02-22 16:04:04 +00:00

13 lines
224 B
Idris

%default covering
data Three = Vrai | Faux | Indef
getType : Three -> Type
getType Vrai = Unit
getType Faux = Unit
getType Indef = Void
swap : (t : Three) -> getType t -> Three
swap Indef _ impossible
swap Vrai () = Faux