diff options
author | Enrico Tassi <Enrico.Tassi@inria.fr> | 2016-09-30 09:53:04 +0200 |
---|---|---|
committer | Enrico Tassi <Enrico.Tassi@inria.fr> | 2016-09-30 10:54:42 +0200 |
commit | 61112fa8bd336b17f4a2e724c4751c550f27c69a (patch) | |
tree | 8c57ea057b3a5b2911ca9b9100ba00e892f9ab8e /toplevel | |
parent | 627659dd1449d4521132efb1f01ad57b128b235c (diff) |
In <= 8.5 compat accept "Arguments f /" even if f has arguments (#5112)
Diffstat (limited to 'toplevel')
-rw-r--r-- | toplevel/vernacentries.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toplevel/vernacentries.ml b/toplevel/vernacentries.ml index 6c903ce14..2e2a60c86 100644 --- a/toplevel/vernacentries.ml +++ b/toplevel/vernacentries.ml @@ -1012,7 +1012,9 @@ let vernac_declare_arguments locality r l nargs flags = | _::li, _::ld, _::ls -> check li ld ls | _ -> assert false in let () = match l with - | [[]] when List.exists ((<>) `Assert) flags -> () + | [[]] when List.exists ((<>) `Assert) flags || + (* Arguments f /. used to be allowed by mistake *) + (Flags.version_less_or_equal Flags.V8_5 && nargs >= 0) -> () | _ -> List.iter2 (check inf_names) (names :: rest) scopes in |