aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-06-11 13:05:50 +0200
committerPierre-Marie Pédrot2020-06-11 13:05:50 +0200
commit149d9604c56969a067ee6d9d0d51919d96cbdc7f (patch)
tree04357ac196a1a4535865412d5d4f06c7563d586e /test-suite
parent5611f23271be3c23761450679374690805bf51bb (diff)
parentc3dc9c558be3d3fe532d3bb3de747e920ce3e47b (diff)
Merge PR #12443: Fix #12442: Confusing error message when the intro pattern of "apply in" fails
Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/output/bug12442.out6
-rw-r--r--test-suite/output/bug12442.v10
2 files changed, 16 insertions, 0 deletions
diff --git a/test-suite/output/bug12442.out b/test-suite/output/bug12442.out
new file mode 100644
index 0000000000..644ef6cd7c
--- /dev/null
+++ b/test-suite/output/bug12442.out
@@ -0,0 +1,6 @@
+The command has indeed failed with message:
+No product even after head-reduction.
+The command has indeed failed with message:
+Not an inductive product.
+The command has indeed failed with message:
+Not an inductive product.
diff --git a/test-suite/output/bug12442.v b/test-suite/output/bug12442.v
new file mode 100644
index 0000000000..481989a4e9
--- /dev/null
+++ b/test-suite/output/bug12442.v
@@ -0,0 +1,10 @@
+Parameter A B : Prop.
+Axiom P : inhabited (A -> B).
+
+Goal A -> True.
+Proof.
+ Fail intros ?%P ?.
+ Fail intros []%P.
+ intro a.
+ Fail apply P in a as [].
+Abort.