aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2018-03-17 15:23:55 +0100
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2018-03-26 22:08:51 +0200
commit2c7fb44684b26d9c9aea0794b9f0d52088337477 (patch)
tree76996152c1fa2868a0e7644fc09fc0a691f88417 /test-suite/bugs
parente128900aee63c972d7977fd47e3fd21649b63409 (diff)
Fixes #7011 (Fix/CoFix were not considered in tactic unification).
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/closed/7011.v16
1 files changed, 16 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/7011.v b/test-suite/bugs/closed/7011.v
new file mode 100644
index 000000000..296e4e11e
--- /dev/null
+++ b/test-suite/bugs/closed/7011.v
@@ -0,0 +1,16 @@
+(* Fix and Cofix were missing in tactic unification *)
+
+Goal exists e, (fix foo (n : nat) : nat := match n with O => e | S n' => foo n' end)
+ = (fix foo (n : nat) : nat := match n with O => O | S n' => foo n' end).
+Proof.
+ eexists.
+ reflexivity.
+Qed.
+
+CoInductive stream := cons : nat -> stream -> stream.
+
+Goal exists e, (cofix foo := cons e foo) = (cofix foo := cons 0 foo).
+Proof.
+ eexists.
+ reflexivity.
+Qed.