aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-12-31 15:59:39 +0100
committerPierre-Marie Pédrot2020-12-31 15:59:39 +0100
commitf26f263250f0bd2ded25d16d1c6a650b92f7f63b (patch)
tree80ba6fcb8b6b1a43319259b3a06da223917bc1fd /test-suite
parent8719fb545724b020808e2d1f8443495297d62ea5 (diff)
Adding a test for conversion involving let-bindings in inductive parameters.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/case_let_param.v15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/success/case_let_param.v b/test-suite/success/case_let_param.v
new file mode 100644
index 0000000000..46d8c26e83
--- /dev/null
+++ b/test-suite/success/case_let_param.v
@@ -0,0 +1,15 @@
+Inductive foo (x := tt) := Foo : forall (y := x), foo.
+
+Definition get (t : foo) := match t with Foo _ y => y end.
+
+Goal get Foo = tt.
+Proof.
+reflexivity.
+Qed.
+
+Goal forall x : foo,
+ match x with Foo _ y => y end = match x with Foo _ _ => tt end.
+Proof.
+intros.
+reflexivity.
+Qed.