From dc2e676c9cdedea43805c21a4b3203832a985f95 Mon Sep 17 00:00:00 2001 From: barras Date: Wed, 23 May 2001 15:13:07 +0000 Subject: amelioration des messages d'erreurs vis a vis des evars ajout automatique des chemins vers les sources au moment du Drop git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1761 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/type_errors.mli | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kernel/type_errors.mli') diff --git a/kernel/type_errors.mli b/kernel/type_errors.mli index 277e5ca4e..11729171b 100644 --- a/kernel/type_errors.mli +++ b/kernel/type_errors.mli @@ -43,10 +43,10 @@ type type_error = | NotAType of unsafe_judgment | BadAssumption of constr | ReferenceVariables of identifier - | ElimArity of inductive * constr list * constr * constr * constr + | ElimArity of inductive * constr list * constr * unsafe_judgment * (constr * constr * string) option - | CaseNotInductive of constr * constr - | NumberBranches of constr * constr * int + | CaseNotInductive of unsafe_judgment + | NumberBranches of unsafe_judgment * int | IllFormedBranch of constr * int * constr * constr | Generalization of (name * types) * unsafe_judgment | ActualType of constr * constr * constr @@ -59,44 +59,44 @@ type type_error = exception TypeError of path_kind * env * type_error -val error_unbound_rel : path_kind -> env -> 'a Evd.evar_map -> int -> 'b +val error_unbound_rel : path_kind -> env -> int -> 'a -val error_not_type : path_kind -> env -> unsafe_judgment -> 'b +val error_not_type : path_kind -> env -> unsafe_judgment -> 'a -val error_assumption : path_kind -> env -> constr -> 'b +val error_assumption : path_kind -> env -> constr -> 'a -val error_reference_variables : path_kind -> env -> identifier -> 'b +val error_reference_variables : path_kind -> env -> identifier -> 'a val error_elim_arity : path_kind -> env -> inductive -> constr list -> constr - -> constr -> constr -> (constr * constr * string) option -> 'b + -> unsafe_judgment -> (constr * constr * string) option -> 'a val error_case_not_inductive : - path_kind -> env -> constr -> constr -> 'b + path_kind -> env -> unsafe_judgment -> 'a val error_number_branches : - path_kind -> env -> constr -> constr -> int -> 'b + path_kind -> env -> unsafe_judgment -> int -> 'a val error_ill_formed_branch : - path_kind -> env -> constr -> int -> constr -> constr -> 'b + path_kind -> env -> constr -> int -> constr -> constr -> 'a val error_generalization : - path_kind -> env -> 'a Evd.evar_map -> name * types -> unsafe_judgment -> 'b + path_kind -> env -> name * types -> unsafe_judgment -> 'a val error_actual_type : - path_kind -> env -> constr -> constr -> constr -> 'b + path_kind -> env -> constr -> constr -> constr -> 'a val error_cant_apply_not_functional : - path_kind -> env -> unsafe_judgment -> unsafe_judgment list -> 'b + path_kind -> env -> unsafe_judgment -> unsafe_judgment list -> 'a val error_cant_apply_bad_type : - path_kind -> env -> 'a Evd.evar_map -> int * constr * constr -> - unsafe_judgment -> unsafe_judgment list -> 'b + path_kind -> env -> int * constr * constr -> + unsafe_judgment -> unsafe_judgment list -> 'a val error_ill_formed_rec_body : - path_kind -> env -> guard_error -> name array -> int -> constr array -> 'b + path_kind -> env -> guard_error -> name array -> int -> constr array -> 'a val error_ill_typed_rec_body : path_kind -> env -> int -> name array -> unsafe_judgment array - -> types array -> 'b + -> types array -> 'a -- cgit v1.2.3