From eb5afe3bf970bcd1e0c907774a49a352df3e91f3 Mon Sep 17 00:00:00 2001 From: herbelin Date: Wed, 21 Nov 2001 21:30:04 +0000 Subject: Amélioration messages d'erreur arité incorrecte (notamment record) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2236 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/type_errors.ml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kernel/type_errors.ml') diff --git a/kernel/type_errors.ml b/kernel/type_errors.ml index f1eb32b5bc..fc98a2ef16 100644 --- a/kernel/type_errors.ml +++ b/kernel/type_errors.ml @@ -34,6 +34,11 @@ type guard_error = | RecCallInCasePred of constr | NotGuardedForm +type arity_error = + | NonInformativeToInformative + | StrongEliminationOnNonSmallType + | WrongArity + type type_error = | UnboundRel of int | UnboundVar of variable @@ -41,7 +46,7 @@ type type_error = | BadAssumption of unsafe_judgment | ReferenceVariables of constr | ElimArity of inductive * types list * constr * unsafe_judgment - * (constr * constr * string) option + * (constr * constr * arity_error) option | CaseNotInductive of unsafe_judgment | WrongCaseInfo of inductive * case_info | NumberBranches of unsafe_judgment * int -- cgit v1.2.3