From f26f263250f0bd2ded25d16d1c6a650b92f7f63b Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Thu, 31 Dec 2020 15:59:39 +0100 Subject: Adding a test for conversion involving let-bindings in inductive parameters. --- test-suite/success/case_let_param.v | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test-suite/success/case_let_param.v 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. -- cgit v1.2.3