aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorMaxime Dénès2016-11-06 13:46:25 +0100
committerMaxime Dénès2016-11-07 09:11:46 +0100
commit75b49b14987ec9467ec5916609da8ce3136d3e11 (patch)
treefdf2f6a5f29c5366b2656c3b5f02eab3aca99a4e /toplevel
parent3308336f1a412cb2a218e3a70a171cb7ff88bfbe (diff)
Fix #5181: [Arguments] no longer correctly checks the length of arguments lists
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/vernacentries.ml3
1 files changed, 1 insertions, 2 deletions
diff --git a/toplevel/vernacentries.ml b/toplevel/vernacentries.ml
index 851d7557a5..86b86e572d 100644
--- a/toplevel/vernacentries.ml
+++ b/toplevel/vernacentries.ml
@@ -1085,8 +1085,7 @@ let vernac_arguments locality reference args more_implicits nargs_for_red flags
else error "Argument lists should agree on the names they provide."
in
- let initial = List.make num_args Anonymous in
- let names = List.fold_left names_union initial names in
+ let names = List.fold_left names_union [] names in
let rec rename prev_names names =
match prev_names, names with