aboutsummaryrefslogtreecommitdiff
path: root/kernel/mod_typing.ml
diff options
context:
space:
mode:
authorMaxime Dénès2018-01-08 12:46:22 +0100
committerMaxime Dénès2018-01-08 12:46:22 +0100
commit47f47713e551f8de18cf2d847f47c1f55b016c8b (patch)
treefba8437d2bab7f202181c83a935ff24e865dcc69 /kernel/mod_typing.ml
parentc34744837dae427ac6cb12f5ada198862d8e1e4f (diff)
parent4131f060ac42f121685817fcc9546c3899c09ab7 (diff)
Merge PR #6425: Cleanup universes in the kernel
Diffstat (limited to 'kernel/mod_typing.ml')
-rw-r--r--kernel/mod_typing.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/mod_typing.ml b/kernel/mod_typing.ml
index f7e755f005..b7eb481ee3 100644
--- a/kernel/mod_typing.ml
+++ b/kernel/mod_typing.ml
@@ -94,8 +94,8 @@ let rec check_with_def env struc (idl,(c,ctx)) mp equiv =
let ctx = Univ.ContextSet.of_context ctx in
c', Monomorphic_const ctx, Univ.ContextSet.add_constraints cst ctx
| Polymorphic_const uctx ->
- let subst, ctx = Univ.abstract_universes ctx in
- let c = Vars.subst_univs_level_constr subst c in
+ let inst, ctx = Univ.abstract_universes ctx in
+ let c = Vars.subst_univs_level_constr (Univ.make_instance_subst inst) c in
let () =
if not (UGraph.check_subtype (Environ.universes env) uctx ctx) then
error_incorrect_with_constraint lab