mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-21 02:31:50 +03:00
914d68858b
- 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
22 lines
320 B
Idris
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
|
|
|