mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-30 15:13:37 +03:00
14 lines
299 B
Plaintext
14 lines
299 B
Plaintext
1/1: Building Test (Test.idr)
|
|
Main> data Main.Even : Nat -> Type
|
|
Totality: total
|
|
Visibility: private
|
|
Constructors:
|
|
Z : Even 0
|
|
SE : Odd n -> Even (S n)
|
|
Main> data Main.Odd : Nat -> Type
|
|
Totality: total
|
|
Visibility: private
|
|
Constructor: SO : Even n -> Odd (S n)
|
|
Main>
|
|
Bye for now!
|