diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2016-11-07 20:33:06 +0100 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2017-02-14 17:27:22 +0100 |
commit | e4f066238799a4598817dfeab8a044760ab670de (patch) | |
tree | 7f29de2c76c8a97b8cfa82791cb860dafd227798 /proofs | |
parent | ce2b509734f3b70494a0a35b0b4eda593c1c8eb6 (diff) |
Coercion API using EConstr.
Diffstat (limited to 'proofs')
-rw-r--r-- | proofs/clenv.ml | 2 | ||||
-rw-r--r-- | proofs/refine.ml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/proofs/clenv.ml b/proofs/clenv.ml index c2130a64a..0515e4198 100644 --- a/proofs/clenv.ml +++ b/proofs/clenv.ml @@ -670,7 +670,7 @@ let define_with_type sigma env ev c = let t = Retyping.get_type_of env sigma (EConstr.of_constr ev) in let ty = Retyping.get_type_of env sigma (EConstr.of_constr c) in let j = Environ.make_judge c ty in - let (sigma, j) = Coercion.inh_conv_coerce_to true (Loc.ghost) env sigma j t in + let (sigma, j) = Coercion.inh_conv_coerce_to true (Loc.ghost) env sigma j (EConstr.of_constr t) in let (ev, _) = destEvar ev in let sigma = Evd.define ev j.Environ.uj_val sigma in sigma diff --git a/proofs/refine.ml b/proofs/refine.ml index b62f0bea4..19134bfa3 100644 --- a/proofs/refine.ml +++ b/proofs/refine.ml @@ -136,7 +136,7 @@ let with_type env evd c t = let my_type = Retyping.get_type_of env evd (EConstr.of_constr c) in let j = Environ.make_judge c my_type in let (evd,j') = - Coercion.inh_conv_coerce_to true (Loc.ghost) env evd j t + Coercion.inh_conv_coerce_to true (Loc.ghost) env evd j (EConstr.of_constr t) in evd , j'.Environ.uj_val |