From 865d3a274dc618a4eff13b309109aa559077a933 Mon Sep 17 00:00:00 2001 From: barras Date: Mon, 12 Nov 2001 12:38:08 +0000 Subject: Suites modifs du noyau. Univ devient purement fonctionnel. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2183 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/type_errors.ml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'kernel/type_errors.ml') diff --git a/kernel/type_errors.ml b/kernel/type_errors.ml index 169df5904..b057ff839 100644 --- a/kernel/type_errors.ml +++ b/kernel/type_errors.ml @@ -36,6 +36,7 @@ type guard_error = type type_error = | UnboundRel of int + | UnboundVar of variable | NotAType of unsafe_judgment | BadAssumption of unsafe_judgment | ReferenceVariables of constr @@ -47,12 +48,12 @@ type type_error = | IllFormedBranch of constr * int * constr * constr | Generalization of (name * types) * unsafe_judgment | ActualType of unsafe_judgment * types - | CantApplyBadType of (int * constr * constr) - * unsafe_judgment * unsafe_judgment array + | CantApplyBadType of + (int * constr * constr) * unsafe_judgment * unsafe_judgment array | CantApplyNonFunctional of unsafe_judgment * unsafe_judgment array | IllFormedRecBody of guard_error * name array * int * constr array - | IllTypedRecBody of int * name array * unsafe_judgment array - * types array + | IllTypedRecBody of + int * name array * unsafe_judgment array * types array exception TypeError of env * type_error @@ -62,6 +63,9 @@ let nfj {uj_val=c;uj_type=ct} = let error_unbound_rel env n = raise (TypeError (env, UnboundRel n)) +let error_unbound_var env v = + raise (TypeError (env, UnboundVar v)) + let error_not_type env j = raise (TypeError (env, NotAType j)) -- cgit v1.2.3