aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-01-19 18:48:03 +0100
committerPierre-Marie Pédrot2020-01-19 18:48:03 +0100
commit3fc470fb3cab7899e372e842a21a4691812ad25a (patch)
tree7a6e5dd8b0014db4f9548f1068b886bc6532e406 /test-suite
parent927c683116c17a4746afdc4000ba2015591d3ba2 (diff)
parent73c3b874633d6f6f8af831d4a37d0c1ae52575bc (diff)
Merge PR #11348: Discharge inductive types without rechecking them
Ack-by: maximedenes Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/Inductive.v16
1 files changed, 16 insertions, 0 deletions
diff --git a/test-suite/success/Inductive.v b/test-suite/success/Inductive.v
index c2130995fc..d17b266690 100644
--- a/test-suite/success/Inductive.v
+++ b/test-suite/success/Inductive.v
@@ -204,3 +204,19 @@ End NonRecLetIn.
Fail Inductive foo (T : Type) : let T := Type in T :=
{ r : forall x : T, x = x }.
+
+Module Discharge.
+ (* discharge test *)
+ Section S.
+ Let x := Prop.
+ Inductive foo : x := bla : foo.
+ End S.
+ Check bla:foo.
+
+ Section S.
+ Variables (A:Type).
+ (* ensure params are scanned for needed section variables even with template arity *)
+ #[universes(template)] Inductive bar (d:A) := .
+ End S.
+ Check @bar nat 0.
+End Discharge.