aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/term_typing.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/term_typing.ml b/kernel/term_typing.ml
index 088dd98db8..af2c511db9 100644
--- a/kernel/term_typing.ml
+++ b/kernel/term_typing.ml
@@ -169,6 +169,7 @@ the polymorphic case
| DefinitionEntry c ->
let { const_entry_type = typ; const_entry_opaque = opaque ; _ } = c in
let { const_entry_body = body; const_entry_feedback = feedback_id; _ } = c in
+ let () = assert (not (opaque && Option.is_empty typ)) in
let (body, ctx), side_eff = Future.join body in
let body, ctx = match trust with
| Pure -> body, ctx