aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/evarutil.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/evarutil.ml b/pretyping/evarutil.ml
index c199eb008..763bfa54d 100644
--- a/pretyping/evarutil.ml
+++ b/pretyping/evarutil.ml
@@ -109,7 +109,7 @@ let exist_to_meta sigma (emap, c) =
let ty = nf_betaiota (nf_evar emap (existential_type emap evar)) in
let n = new_meta() in
metamap := (n, ty) :: !metamap;
- mkMeta n in
+ mkCast (mkMeta n, ty) in
let rec replace c =
match kind_of_term c with
Evar (k,_ as ev) when not (Evd.in_dom sigma k) -> change_exist ev