diff options
author | barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2001-11-12 12:38:08 +0000 |
---|---|---|
committer | barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2001-11-12 12:38:08 +0000 |
commit | 865d3a274dc618a4eff13b309109aa559077a933 (patch) | |
tree | dac5bc457e5ad9b955b21012b230ed97de22d92b /kernel/type_errors.ml | |
parent | da33e695040678d74622213af2cd43d32140d186 (diff) |
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
Diffstat (limited to 'kernel/type_errors.ml')
-rw-r--r-- | kernel/type_errors.ml | 12 |
1 files changed, 8 insertions, 4 deletions
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)) |