aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/mod_typing.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mod_typing.ml')
-rw-r--r--kernel/mod_typing.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/mod_typing.ml b/kernel/mod_typing.ml
index 69fbd0f32..c7f3e5c51 100644
--- a/kernel/mod_typing.ml
+++ b/kernel/mod_typing.ml
@@ -98,6 +98,7 @@ let rec check_with_def env struc (idl,(c,ctx)) mp equiv =
if not (UGraph.check_subtype (Environ.universes env) uctx ctx) then
error_incorrect_with_constraint lab
in
+ (** Terms are compared in a context with De Bruijn universe indices *)
let env' = Environ.push_context ~strict:false (Univ.AUContext.repr uctx) env in
let cst = match cb.const_body with
| Undef _ | OpaqueDef _ ->