aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping/unification.ml
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping/unification.ml')
-rw-r--r--pretyping/unification.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/pretyping/unification.ml b/pretyping/unification.ml
index c562e6faa..b9b076d4f 100644
--- a/pretyping/unification.ml
+++ b/pretyping/unification.ml
@@ -110,7 +110,9 @@ let extract_instance_status = function
let rec subst_meta_instances bl c =
match kind_of_term c with
- | Meta i -> (try List.assoc_snd_in_triple i bl with Not_found -> c)
+ | Meta i ->
+ let select (j,_,_) = Int.equal i j in
+ (try pi2 (List.find select bl) with Not_found -> c)
| _ -> map_constr (subst_meta_instances bl) c
let pose_all_metas_as_evars env evd t =