diff options
| author | barras | 2002-12-18 15:54:48 +0000 |
|---|---|---|
| committer | barras | 2002-12-18 15:54:48 +0000 |
| commit | 831198f269f98a828e0d571a41f3453c1bc008b5 (patch) | |
| tree | 48a053d4f411d6712589117e996bd75804a9c3a3 /kernel/type_errors.ml | |
| parent | 2964b1ed999b6c1022a897e58acb09933495fdcb (diff) | |
- amelioration des messages d'erreur de la condition de garde
- restructuration de clenv.ml
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3455 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/type_errors.ml')
| -rw-r--r-- | kernel/type_errors.ml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/type_errors.ml b/kernel/type_errors.ml index fc98a2ef16..f37a6cb031 100644 --- a/kernel/type_errors.ml +++ b/kernel/type_errors.ml @@ -20,8 +20,8 @@ type guard_error = (* Fixpoints *) | NotEnoughAbstractionInFixBody | RecursionNotOnInductiveType - | RecursionOnIllegalTerm - | NotEnoughArgumentsForFixCall + | RecursionOnIllegalTerm of int * constr * int list * int list + | NotEnoughArgumentsForFixCall of int (* CoFixpoints *) | CodomainNotInductiveType of constr | NestedRecursiveOccurrences @@ -56,7 +56,7 @@ type type_error = | CantApplyBadType of (int * constr * constr) * unsafe_judgment * unsafe_judgment array | CantApplyNonFunctional of unsafe_judgment * unsafe_judgment array - | IllFormedRecBody of guard_error * name array * int * constr array + | IllFormedRecBody of guard_error * name array * int | IllTypedRecBody of int * name array * unsafe_judgment array * types array @@ -105,8 +105,8 @@ let error_cant_apply_not_functional env rator randl = let error_cant_apply_bad_type env t rator randl = raise(TypeError (env, CantApplyBadType (t,rator,randl))) -let error_ill_formed_rec_body env why lna i vdefs = - raise (TypeError (env, IllFormedRecBody (why,lna,i,vdefs))) +let error_ill_formed_rec_body env why lna i = + raise (TypeError (env, IllFormedRecBody (why,lna,i))) let error_ill_typed_rec_body env i lna vdefj vargs = raise (TypeError (env, IllTypedRecBody (i,lna,vdefj,vargs))) |
