aboutsummaryrefslogtreecommitdiff
path: root/pretyping/inductiveops.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-02-12 17:08:24 +0100
committerPierre-Marie Pédrot2020-02-12 17:08:24 +0100
commit713f8a1af8c5e053ea6dc7b58a4a2b04a1e67c2f (patch)
tree430b6be9f424f3055f12c7754ed444d2d8e9fb75 /pretyping/inductiveops.ml
parent99a0e8f01fd2570672e5e9d133d5a9472eef406b (diff)
parenta5f9b0ea89c9a595ce47c549a2ebb976b0ac3aa2 (diff)
Merge PR #11544: Cleanup some globref related manipulations
Reviewed-by: herbelin Reviewed-by: ppedrot
Diffstat (limited to 'pretyping/inductiveops.ml')
-rw-r--r--pretyping/inductiveops.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/inductiveops.ml b/pretyping/inductiveops.ml
index 36b405e981..816a8c4703 100644
--- a/pretyping/inductiveops.ml
+++ b/pretyping/inductiveops.ml
@@ -28,14 +28,14 @@ open Context.Rel.Declaration
let type_of_inductive env (ind,u) =
let (mib,_ as specif) = Inductive.lookup_mind_specif env ind in
- Typeops.check_hyps_inclusion env mkInd ind mib.mind_hyps;
+ Typeops.check_hyps_inclusion env (GlobRef.IndRef ind) mib.mind_hyps;
Inductive.type_of_inductive env (specif,u)
(* Return type as quoted by the user *)
let type_of_constructor env (cstr,u) =
let (mib,_ as specif) =
Inductive.lookup_mind_specif env (inductive_of_constructor cstr) in
- Typeops.check_hyps_inclusion env mkConstruct cstr mib.mind_hyps;
+ Typeops.check_hyps_inclusion env (GlobRef.ConstructRef cstr) mib.mind_hyps;
Inductive.type_of_constructor (cstr,u) specif
(* Return constructor types in user form *)