diff options
| author | Pierre-Marie Pédrot | 2020-12-31 15:59:39 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-12-31 15:59:39 +0100 |
| commit | f26f263250f0bd2ded25d16d1c6a650b92f7f63b (patch) | |
| tree | 80ba6fcb8b6b1a43319259b3a06da223917bc1fd /test-suite | |
| parent | 8719fb545724b020808e2d1f8443495297d62ea5 (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.v | 15 |
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. |
