diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2001-11-21 21:30:04 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2001-11-21 21:30:04 +0000 |
commit | eb5afe3bf970bcd1e0c907774a49a352df3e91f3 (patch) | |
tree | df76074fe7d7e42802f61fba5d7d3ceb9ceaed23 /kernel/type_errors.mli | |
parent | c136d946314f44ab5da5f7ed229dc36b84effb66 (diff) |
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
Diffstat (limited to 'kernel/type_errors.mli')
-rw-r--r-- | kernel/type_errors.mli | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kernel/type_errors.mli b/kernel/type_errors.mli index 99b46877a..a18ffd7e5 100644 --- a/kernel/type_errors.mli +++ b/kernel/type_errors.mli @@ -36,6 +36,11 @@ type guard_error = | RecCallInCasePred of constr | NotGuardedForm +type arity_error = + | NonInformativeToInformative + | StrongEliminationOnNonSmallType + | WrongArity + type type_error = | UnboundRel of int | UnboundVar of variable @@ -43,7 +48,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 @@ -71,7 +76,7 @@ val error_reference_variables : env -> constr -> 'a val error_elim_arity : env -> inductive -> types list -> constr - -> unsafe_judgment -> (constr * constr * string) option -> 'a + -> unsafe_judgment -> (constr * constr * arity_error) option -> 'a val error_case_not_inductive : env -> unsafe_judgment -> 'a |