aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/cooking.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cooking.ml')
-rw-r--r--kernel/cooking.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/cooking.ml b/kernel/cooking.ml
index d2106f860..86d786b09 100644
--- a/kernel/cooking.ml
+++ b/kernel/cooking.ml
@@ -203,9 +203,8 @@ let cook_constant env { from = cb; info } =
let const_hyps =
Context.Named.fold_outside (fun decl hyps ->
let open Context.Named.Declaration in
- let h = get_id decl in
- List.filter (fun decl -> let id = get_id decl in
- not (Id.equal id h)) hyps)
+ List.filter (fun decl' -> not (Id.equal (get_id decl) (get_id decl')))
+ hyps)
hyps ~init:cb.const_hyps in
let typ = match cb.const_type with
| RegularArity t ->