aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorHugo Herbelin2019-12-05 20:57:01 +0100
committerHugo Herbelin2019-12-05 21:15:24 +0100
commiteff360695af18476bfca0edfdea467cbf9203984 (patch)
tree6382e3198ed0ba3bffbf1f038974d8bd59ca3dcb /test-suite
parenteffbc03b9072ff94f96e54a5026ce04d7aa41bcc (diff)
Unfortunate bug with "cofix with": case of a CProdN over no bindings.
Failing on CProdN([],...) was maybe a bit too radical.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/RecTutorial.v4
-rw-r--r--test-suite/success/cofixtac.v10
2 files changed, 10 insertions, 4 deletions
diff --git a/test-suite/success/RecTutorial.v b/test-suite/success/RecTutorial.v
index 6370cab6b2..4fac798f76 100644
--- a/test-suite/success/RecTutorial.v
+++ b/test-suite/success/RecTutorial.v
@@ -1210,7 +1210,3 @@ Proof.
constructor.
trivial.
Qed.
-
-
-
-
diff --git a/test-suite/success/cofixtac.v b/test-suite/success/cofixtac.v
new file mode 100644
index 0000000000..ae75ee770f
--- /dev/null
+++ b/test-suite/success/cofixtac.v
@@ -0,0 +1,10 @@
+CoInductive stream :=
+| C : content -> stream
+with content :=
+| D : nat -> stream -> content.
+
+Lemma one : stream.
+cofix c with (d : content).
+- constructor. apply d.
+- constructor. exact 1. apply c.
+Defined.