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/inductive.ml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'kernel/inductive.ml') 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 = -- cgit v1.2.3