aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar corbinea <corbinea@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-02-13 13:27:11 +0000
committerGravatar corbinea <corbinea@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-02-13 13:27:11 +0000
commit82fb5aa169bff5d3aaa29c8eadce995379a5f7b5 (patch)
treee31336c9baa8fe83f2772578e71038c9460da22b
parent6a5e9a6c7cc3d4d7481ece365ab4c1ce9a97ad6c (diff)
firstorder fails gracefullly when encountering untypable higher-order terms
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8040 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--contrib/first-order/instances.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/first-order/instances.ml b/contrib/first-order/instances.ml
index eac842b86..04852da66 100644
--- a/contrib/first-order/instances.ml
+++ b/contrib/first-order/instances.ml
@@ -129,7 +129,10 @@ let mk_open_instance id gl m t=
let t1=raux (n-1) t0 in
RLambda(loc,name,RHole (dummy_loc,Evd.BinderType name),t1)
| _-> anomaly "can't happen" in
- let ntt=Pretyping.understand evmap env (raux m rawt) in
+ let ntt=try
+ Pretyping.understand evmap env (raux m rawt)
+ with _ ->
+ error "Untypable instance, maybe higher-order non-prenex quantification" in
Sign.decompose_lam_n_assum m ntt
(* tactics *)