diff options
| author | Pierre-Marie Pédrot | 2018-06-13 15:00:30 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2018-06-13 15:00:30 +0200 |
| commit | 3d30f6f2478cfdcacb0c3c56852230499e83aeea (patch) | |
| tree | 64a5bb9c3018a8cbee9fbd63d54aff886e10854e /test-suite | |
| parent | c1d690443589a457b18b39b7003ccb762bcf401f (diff) | |
| parent | c464965df350ab5007d2a1c0d6e625d119abf650 (diff) | |
Merge PR #7789: Fixes #7779: destruct's "in" clause was forgetting the possibility of an "eqn" clause
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/7779.v | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/7779.v b/test-suite/bugs/closed/7779.v new file mode 100644 index 0000000000..78936b5958 --- /dev/null +++ b/test-suite/bugs/closed/7779.v @@ -0,0 +1,15 @@ +(* Checking that the "in" clause takes the "eqn" clause into account *) + +Definition test (x: nat): {y: nat | False }. Admitted. + +Parameter x: nat. +Parameter z: nat. + +Goal + proj1_sig (test x) = z -> + False. +Proof. + intro H. + destruct (test x) eqn:Heqs in H. + change (test x = exist (fun _ : nat => False) x0 f) in Heqs. (* Check it has the expected statement *) +Abort. |
