aboutsummaryrefslogtreecommitdiff
path: root/vernac/comDefinition.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-06-24 13:27:55 +0200
committerEmilio Jesus Gallego Arias2019-06-24 13:27:55 +0200
commitd2abcce128c0ba9f62fed66a1bca9c294be0c9c0 (patch)
tree987f9ce8d3522e1c5f610b82ca2b4c953251126d /vernac/comDefinition.ml
parentee1717a5ac72373acddf1bbe913eebe8943f3c18 (diff)
parentb3bfb59281b35fc2a48e5293727977cc260d44c0 (diff)
Merge PR #10406: Desynchronize the type of proof and kernel entries
Reviewed-by: ejgallego Reviewed-by: gares
Diffstat (limited to 'vernac/comDefinition.ml')
-rw-r--r--vernac/comDefinition.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/vernac/comDefinition.ml b/vernac/comDefinition.ml
index 853f2c9aa3..b3cc0a4236 100644
--- a/vernac/comDefinition.ml
+++ b/vernac/comDefinition.ml
@@ -10,7 +10,6 @@
open Pp
open Util
-open Entries
open Redexpr
open Constrintern
open Pretyping
@@ -86,12 +85,12 @@ let do_definition ~program_mode ?hook ident k univdecl bl red_option c ctypopt =
in
if program_mode then
let env = Global.env () in
- let (c,ctx), sideff = Future.force ce.const_entry_body in
+ let (c,ctx), sideff = Future.force ce.Proof_global.proof_entry_body in
assert(Safe_typing.empty_private_constants = sideff.Evd.seff_private);
assert(Univ.ContextSet.is_empty ctx);
Obligations.check_evars env evd;
let c = EConstr.of_constr c in
- let typ = match ce.const_entry_type with
+ let typ = match ce.Proof_global.proof_entry_type with
| Some t -> EConstr.of_constr t
| None -> Retyping.get_type_of env evd c
in