mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-17 00:10:31 +03:00
741960f0d1
This issue was fixed by #1081
13 lines
224 B
Idris
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
|