Idris2/tests/idris2/total002/Total.idr
Edwin Brady a972778eab Add test script
They don't all pass yet, for minor reasons. Coming shortly...
Unfortunately the startup overhead for chez is really noticeable here!
2020-05-19 18:25:18 +01:00

14 lines
240 B
Idris

data Fin : Nat -> Type where
FZ : Fin (S k)
FS : Fin k -> Fin (S k)
noFinZ : Fin Z -> Void
noFinZ FZ impossible
noFinZ (FS k) impossible
noFinZ' : Fin Z -> Void
noFinZ' x impossible
noEmpty : Void -> Fin Z
noEmpty t impossible