diff options
| author | herbelin | 2001-11-21 21:30:04 +0000 |
|---|---|---|
| committer | herbelin | 2001-11-21 21:30:04 +0000 |
| commit | eb5afe3bf970bcd1e0c907774a49a352df3e91f3 (patch) | |
| tree | df76074fe7d7e42802f61fba5d7d3ceb9ceaed23 /kernel/inductive.ml | |
| 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/inductive.ml')
| -rw-r--r-- | kernel/inductive.ml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/inductive.ml b/kernel/inductive.ml index d7181299e1..c9399925bb 100644 --- a/kernel/inductive.ml +++ b/kernel/inductive.ml @@ -222,14 +222,13 @@ let is_info_arity env c = let error_elim_expln env kp ki = if is_info_arity env kp && not (is_info_arity env ki) then - "non-informative objects may not construct informative ones." + NonInformativeToInformative else match (kind_of_term kp,kind_of_term ki) with - | Sort (Type _), Sort (Prop _) -> - "strong elimination on non-small inductive types leads to paradoxes." - | _ -> "wrong arity" + | Sort (Type _), Sort (Prop _) -> StrongEliminationOnNonSmallType + | _ -> WrongArity -exception Arity of (constr * constr * string) option +exception Arity of (constr * constr * arity_error) option let is_correct_arity env kelim (c,pj) indf t = |
