aboutsummaryrefslogtreecommitdiff
path: root/pretyping/coercion.ml
diff options
context:
space:
mode:
authorMatthieu Sozeau2018-10-29 22:04:38 +0100
committerMatthieu Sozeau2018-10-30 11:45:05 +0100
commit00a75503ed7c7bcffb7a7e0bbb6cf4255d83255b (patch)
treed15e9319ecc1fb41059acba55328d393a66acfb9 /pretyping/coercion.ml
parent57a0d5091a9524d35161875a884835a573d82e0b (diff)
Switch to using the obligation_evar flag instead of the evar source
for the determination of evars that can be turned into obligations.
Diffstat (limited to 'pretyping/coercion.ml')
-rw-r--r--pretyping/coercion.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/pretyping/coercion.ml b/pretyping/coercion.ml
index e15c00f7dc..e21c2fda85 100644
--- a/pretyping/coercion.ml
+++ b/pretyping/coercion.ml
@@ -104,6 +104,7 @@ let make_existential ?loc ?(opaque = not (get_proofs_transparency ())) na env ev
Evar_kinds.qm_name=na;
}) in
let evd, v = Evarutil.new_evar env !evdref ~src c in
+ let evd = Evd.set_obligation_evar evd (fst (destEvar evd v)) in
evdref := evd;
v