aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs
diff options
context:
space:
mode:
authorEnrico Tassi2020-01-07 14:26:41 +0100
committerEnrico Tassi2020-01-07 14:26:41 +0100
commit1fc71f3209afd4b8783dce62e1fd1539e97f8017 (patch)
treeb319c3cd4508724d7e3a34d26f087413b821cd3a /test-suite/bugs
parent793bddef6b4f615297e9f9088cd0b603c56b2014 (diff)
parent7b04bad71f756fdd9ba9145dd41381bdf30441c3 (diff)
Merge PR #11317: Fix #11140: Bidirectionality hints perform (surprising?) simplification
Reviewed-by: SkySkimmer Ack-by: gares Reviewed-by: mattam82
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/bug_11140.v11
-rw-r--r--test-suite/bugs/closed/bug_11360.v6
2 files changed, 17 insertions, 0 deletions
diff --git a/test-suite/bugs/bug_11140.v b/test-suite/bugs/bug_11140.v
new file mode 100644
index 0000000000..ca806ea324
--- /dev/null
+++ b/test-suite/bugs/bug_11140.v
@@ -0,0 +1,11 @@
+Axiom T : nat -> Prop.
+Axiom f : forall x, T x.
+Arguments f & x.
+
+Lemma test : (f (1 + _) : T 2) = f 2.
+match goal with
+| |- (f (1 + 1) = f 2) => idtac
+| |- (f 2 = f 2) => fail (* Issue 11140 *)
+| |- _ => fail
+end.
+Abort.
diff --git a/test-suite/bugs/closed/bug_11360.v b/test-suite/bugs/closed/bug_11360.v
new file mode 100644
index 0000000000..d8bc4a9f02
--- /dev/null
+++ b/test-suite/bugs/closed/bug_11360.v
@@ -0,0 +1,6 @@
+Section S.
+ Variable (A:Type).
+ #[universes(template)]
+ Inductive bar (d:A) := .
+End S.
+Check bar nat 0.