Idris2/tests/idris2/data/data002/Test.idr
2023-09-07 14:57:22 +01:00

12 lines
163 B
Idris

%default total
data Odd : Nat -> Type
data Even : Nat -> Type
data Odd where
SO : Even n -> Odd (S n)
data Even where
Z : Even Z
SE : Odd n -> Even (S n)