aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs/opened/3310.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/bugs/opened/3310.v')
-rw-r--r--test-suite/bugs/opened/3310.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/bugs/opened/3310.v b/test-suite/bugs/opened/3310.v
new file mode 100644
index 0000000000..ee9f8edfd3
--- /dev/null
+++ b/test-suite/bugs/opened/3310.v
@@ -0,0 +1,10 @@
+Set Primitive Projections.
+
+CoInductive stream A := cons { hd : A; tl : stream A }.
+
+CoFixpoint id {A} (s : stream A) := cons _ (hd s) (id (tl s)).
+
+Lemma id_spec : forall A (s : stream A), id s = s.
+Proof.
+intros A s.
+Fail Timeout 1 change (id s) with (cons _ (hd (id s)) (tl (id s))).