aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping/pretype_errors.ml
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-05-31 13:12:16 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-05-31 13:12:16 +0000
commite563ed5bf7681b910e36d2dc4ea99406da940cec (patch)
tree2f20f6a977cb75067ab7ee1bffddd444136aa6ad /pretyping/pretype_errors.ml
parent301d5af223390fa5c82da9ae9958f610493ba814 (diff)
Afficahge des locations
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@483 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/pretype_errors.ml')
-rw-r--r--pretyping/pretype_errors.ml12
1 files changed, 11 insertions, 1 deletions
diff --git a/pretyping/pretype_errors.ml b/pretyping/pretype_errors.ml
index 4067d0064..74f4c5748 100644
--- a/pretyping/pretype_errors.ml
+++ b/pretyping/pretype_errors.ml
@@ -14,7 +14,17 @@ let error_var_not_found_loc loc k s =
raise_pretype_error (loc,k, Global.context() (*bidon*), VarNotFound s)
let error_cant_find_case_type_loc loc env expr =
- raise_pretype_error (loc,CCI,context env,CantFindCaseType expr)
+ raise_pretype_error (loc, CCI, context env, CantFindCaseType expr)
+
+let error_actual_type_loc loc env c actty expty =
+ raise_pretype_error (loc, CCI, context env, ActualType (c,actty,expty))
+
+let error_cant_apply_not_functional_loc loc env rator randl =
+ raise_pretype_error
+ (loc,CCI,context env, CantApplyNonFunctional (rator,randl))
+
+let error_cant_apply_bad_type_loc loc env t rator randl =
+ raise_pretype_error (loc, CCI, context env, CantApplyBadType (t,rator,randl))
let error_ill_formed_branch k env c i actty expty =
raise (TypeError (k, context env, IllFormedBranch (c,i,actty,expty)))