diff options
| author | Maxime Dénès | 2016-11-06 13:46:25 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2016-11-07 09:11:46 +0100 |
| commit | 75b49b14987ec9467ec5916609da8ce3136d3e11 (patch) | |
| tree | fdf2f6a5f29c5366b2656c3b5f02eab3aca99a4e | |
| parent | 3308336f1a412cb2a218e3a70a171cb7ff88bfbe (diff) | |
Fix #5181: [Arguments] no longer correctly checks the length of arguments lists
| -rw-r--r-- | test-suite/bugs/closed/5181.v | 3 | ||||
| -rw-r--r-- | toplevel/vernacentries.ml | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test-suite/bugs/closed/5181.v b/test-suite/bugs/closed/5181.v new file mode 100644 index 0000000000..0e6d471979 --- /dev/null +++ b/test-suite/bugs/closed/5181.v @@ -0,0 +1,3 @@ +Definition foo (x y : nat) := x. +Fail Arguments foo {_} : assert. + 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 |
