diff options
author | Tej Chajed <tchajed@mit.edu> | 2017-09-21 18:36:00 -0400 |
---|---|---|
committer | Tej Chajed <tchajed@mit.edu> | 2017-09-21 18:36:00 -0400 |
commit | cf265ef5e32f08562db702fb545fb5d346e0e924 (patch) | |
tree | 3095c86d1d93d2a23cf75f58f5758a468d73ff07 /test-suite/output | |
parent | 9933871efd122163f7e2dfe8377b9b2dd384b47b (diff) |
Report missing arguments in error message
Augment the "Illegal tactic application" error message with the number
of extra arguments passed.
Fixes BZ#5753.
Diffstat (limited to 'test-suite/output')
-rw-r--r-- | test-suite/output/ltac_extra_args.out | 8 | ||||
-rw-r--r-- | test-suite/output/ltac_extra_args.v | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test-suite/output/ltac_extra_args.out b/test-suite/output/ltac_extra_args.out new file mode 100644 index 000000000..77e799d35 --- /dev/null +++ b/test-suite/output/ltac_extra_args.out @@ -0,0 +1,8 @@ +The command has indeed failed with message: +Illegal tactic application: got 1 extra argument. +The command has indeed failed with message: +Illegal tactic application: got 2 extra arguments. +The command has indeed failed with message: +Illegal tactic application: got 1 extra argument. +The command has indeed failed with message: +Illegal tactic application: got 2 extra arguments. diff --git a/test-suite/output/ltac_extra_args.v b/test-suite/output/ltac_extra_args.v new file mode 100644 index 000000000..4caf619fe --- /dev/null +++ b/test-suite/output/ltac_extra_args.v @@ -0,0 +1,10 @@ +Ltac foo := idtac. +Ltac bar H := idtac. + +Goal True. +Proof. + Fail foo H. + Fail foo H H'. + Fail bar H H'. + Fail bar H H' H''. +Abort. |