diff options
| author | Gaëtan Gilbert | 2020-03-17 16:22:05 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-03-17 16:22:05 +0100 |
| commit | 5a2990d7a3a90f0c0554c8132b0b692ce13a5a02 (patch) | |
| tree | 45348b07d54ba9fbfe1255205b235f68bbf9e99e /test-suite | |
| parent | 901cbfab468efa868e3838c2009ac09978ee661a (diff) | |
| parent | b62a6df9907169f47a72ee78ebe088c68932dd93 (diff) | |
Merge PR #11811: Remove a positivity check when Positivity Checking is off
Reviewed-by: SkySkimmer
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_11811.v | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_11811.v b/test-suite/bugs/closed/bug_11811.v new file mode 100644 index 0000000000..a73494b630 --- /dev/null +++ b/test-suite/bugs/closed/bug_11811.v @@ -0,0 +1,13 @@ + +Unset Positivity Checking. + +Inductive foo : Type -> Type := +| bar : foo (foo unit) +| baz : foo nat. + +Definition toto : forall A, foo A -> {A = foo unit} + {A = nat}. +Proof. + intros A x. destruct x; intuition. +Defined. + +Check (eq_refl : toto _ baz = right eq_refl). |
