aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-12-30 19:19:32 +0100
committerGaëtan Gilbert2020-01-15 13:43:35 +0100
commit73c3b874633d6f6f8af831d4a37d0c1ae52575bc (patch)
tree3ca8004e6f295b6812b1f585d12f64fde01ef909 /test-suite
parentf3a6d9dce4d1c291dbaa03bd0e4ed5f33646bff0 (diff)
Discharge inductive types without rechecking them
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.