Idris2/tests/idris2/failing/failing003/FailingTotality.idr
2023-09-07 14:57:22 +01:00

22 lines
320 B
Idris

module FailingTotality
%default total
failing "x is not covering."
x : Bool -> Nat
x True = 0
failing "x is not total, possibly not terminating due to recursive
path FailingTotality.x"
x : Bool
x = x
failing "D is not total, not strictly positive"
data D : Type where
Lam : (D -> D) -> D