Idris2/tests/idris2/failing003/FailingTotality.idr
Justus Matthiesen 914d68858b [ termination ] faithful implementation of size-change graph termination analysis
- call sequences in termination errors now carry location information
- new error message (`BadPath`) for late-starting loops
- [ fix ] transitive closure of size-change graphs no longer ignores function arguments
- update existing tests accordingly
2023-02-08 16:13:04 +00: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