diff options
| author | Pierre-Marie Pédrot | 2020-10-21 12:12:23 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-10-21 12:12:23 +0200 |
| commit | 135677207e3058efd9d1f5516429235de9093fb4 (patch) | |
| tree | 8dff8b57011671a67818d12a683cbef94fe3c829 /test-suite | |
| parent | 637657847c6215e031947de042b927a9efd34edd (diff) | |
| parent | cc06679015013fa26736e10227967cd38be3d6b5 (diff) | |
Merge PR #13201: Report a useful error for dependent destruction
Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/output/DependentInductionErrors.out | 4 | ||||
| -rw-r--r-- | test-suite/output/DependentInductionErrors.v | 17 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/output/DependentInductionErrors.out b/test-suite/output/DependentInductionErrors.out new file mode 100644 index 0000000000..4a83375f6f --- /dev/null +++ b/test-suite/output/DependentInductionErrors.out @@ -0,0 +1,4 @@ +The command has indeed failed with message: +Tactic failure: To use dependent destruction, first [Require Import Coq.Program.Equality.]. +The command has indeed failed with message: +Tactic failure: To use dependent induction, first [Require Import Coq.Program.Equality.]. diff --git a/test-suite/output/DependentInductionErrors.v b/test-suite/output/DependentInductionErrors.v new file mode 100644 index 0000000000..2fce00f9fd --- /dev/null +++ b/test-suite/output/DependentInductionErrors.v @@ -0,0 +1,17 @@ +Theorem foo (b:bool) : b = true \/ b = false. +Proof. + Fail dependent destruction b. + Fail dependent induction b. +Abort. + +From Coq Require Import Program.Equality. + +Theorem foo_with_destruction (b:bool) : b = true \/ b = false. +Proof. + dependent destruction b; auto. +Qed. + +Theorem foo_with_induction (b:bool) : b = true \/ b = false. +Proof. + dependent induction b; auto. +Qed. |
