diff options
| author | Pierre-Marie Pédrot | 2020-11-09 21:36:51 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-11-12 10:57:05 +0100 |
| commit | 0ca664107a1e60dfa47aa7536e30a348456efe44 (patch) | |
| tree | 57f9c57e7544ac4aad2c7d5f58c17d0fa26b1403 /test-suite | |
| parent | 9dfc627ccac11b46bc11bcc11e9609b952d35fdd (diff) | |
Fix #13330: Kernel messes with polymorphic side-effects.
Polymorphic side-effects generated in monomorphic mode would be counted towards
trusted subcomponents. This would allow to make ill-typed terms pass as
legitimate by mimicking the shape of the inlining of monomorphic side-effects in
such a proof.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_13330.v | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_13330.v b/test-suite/bugs/closed/bug_13330.v new file mode 100644 index 0000000000..d13de2e58d --- /dev/null +++ b/test-suite/bugs/closed/bug_13330.v @@ -0,0 +1,17 @@ +Polymorphic Inductive path {A : Type} (x : A) : A -> Type := + refl : path x x. + +Goal False. +Proof. +simple refine (let H : False := _ in _). ++ exact_no_check I. ++ assert (path true false -> path false true). + (** Create a dummy polymorphic side-effect *) + { + intro IHn. + rewrite IHn. + reflexivity. + } + exact H. +Fail Qed. +Abort. |
