aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorherbelin2001-12-18 09:16:00 +0000
committerherbelin2001-12-18 09:16:00 +0000
commit2c92d6fd70eb8752a732bb1f54cf64ef97ee444a (patch)
treea24641ef6ca6eb4f332bfd5dd7382b870bd34650 /toplevel
parent06982f3aec9bbc02b9a7dc045ae3112fd5bc218f (diff)
Nettoyage exceptions liƩes au vieux Case
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2304 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/himsg.ml13
1 files changed, 1 insertions, 12 deletions
diff --git a/toplevel/himsg.ml b/toplevel/himsg.ml
index 4af71a5874..2582057ebf 100644
--- a/toplevel/himsg.ml
+++ b/toplevel/himsg.ml
@@ -256,18 +256,9 @@ let explain_not_inductive ctx c =
str"The term" ++ brk(1,1) ++ pc ++ spc () ++
str "is not an inductive definition"
-let explain_ml_case ctx mes =
- let expln = match mes with
- | MlCaseAbsurd ->
- str "Unable to infer a predicate for an elimination an empty type"
- | MlCaseDependent ->
- str "Unable to infer a dependent elimination predicate"
- in
- hov 0 (str "Cannot infer ML Case predicate:" ++ fnl () ++ expln)
-
let explain_cant_find_case_type ctx c =
let pe = prterm_env ctx c in
- hov 3 (str "Cannot infer type of whole Case expression on" ++ ws 1 ++ pe)
+ hov 3 (str "Cannot infer type of pattern-matching on" ++ ws 1 ++ pe)
let explain_occur_check ctx ev rhs =
let id = "?" ^ string_of_int ev in
@@ -338,8 +329,6 @@ let explain_type_error ctx = function
explain_not_inductive ctx c
*)
let explain_pretype_error ctx = function
- | MlCase (mes,_,_) ->
- explain_ml_case ctx mes
| CantFindCaseType c ->
explain_cant_find_case_type ctx c
| OccurCheck (n,c) ->