aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMatthieu Sozeau2015-10-29 15:11:29 -0400
committerMatthieu Sozeau2015-10-29 15:18:16 -0400
commita3a17b514a2ffaba54cd182fdf27b7e84366ab44 (patch)
tree8d48786996f4a8217404fbd43f3fdc72f922592f /test-suite
parent78edfe09f34db4a28fb41a1f6fd3bb4922d09ec8 (diff)
Handle side-effects of Vernacular commands inside proofs better, so that
universes are declared correctly in the enclosing proofs evar_map's.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/sideff.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/success/sideff.v b/test-suite/success/sideff.v
new file mode 100644
index 0000000000..3c0b81568a
--- /dev/null
+++ b/test-suite/success/sideff.v
@@ -0,0 +1,12 @@
+Definition idw (A : Type) := A.
+Lemma foobar : unit.
+Proof.
+ Require Import Program.
+ apply (const tt tt).
+Qed.
+
+Lemma foobar' : unit.
+ Lemma aux : forall A : Type, A -> unit.
+ Proof. intros. pose (foo := idw A). exact tt. Show Universes. Qed.
+ apply (@aux unit tt).
+Qed.