aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/safe_typing.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/safe_typing.ml b/kernel/safe_typing.ml
index eecde292ae..cb85a98687 100644
--- a/kernel/safe_typing.ml
+++ b/kernel/safe_typing.ml
@@ -337,7 +337,7 @@ let add_discharged_constant sp r locals env =
let (body,typ) = Cooking.cook_constant env r in
match body with
| None ->
- add_parameter sp typ [] (* Bricolage avant poubelle *) env
+ add_parameter sp typ locals (* Bricolage avant poubelle *) env
| Some c ->
(* let c = hcons1_constr c in *)
let (jtyp,cst) = safe_infer env typ in