Idris2/tests/idris2/data002/Test.idr

10 lines
147 B
Idris
Raw Normal View History

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)