diff options
| author | Maxime Dénès | 2016-12-04 12:03:18 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2016-12-04 12:03:18 +0100 |
| commit | f653036a73f008168809d3f50041382fe3ee52a1 (patch) | |
| tree | d9c9545e7515c3701434571f84b0aef74bf50158 /test-suite/success | |
| parent | 36df551d64a01e5f1fa7fe2ffdcbf1cb68b268cd (diff) | |
| parent | b8c0f76e507dc0c5dbae3ea7a89d78f16b4a7acb (diff) | |
Merge remote-tracking branch 'github/pr/366' into v8.6
Was PR#366: Univs: fix bug 5208
Diffstat (limited to 'test-suite/success')
| -rw-r--r-- | test-suite/success/Inductive.v | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/success/Inductive.v b/test-suite/success/Inductive.v index 9661b3bfac..f746def5cb 100644 --- a/test-suite/success/Inductive.v +++ b/test-suite/success/Inductive.v @@ -162,3 +162,24 @@ Inductive L (A:Type) (T:=A) : Type := C : L nat -> L A. hit the Inductiveops.get_arity bug mentioned above (see #3491) *) Inductive IND6 (A:Type) (T:=A) := CONS6 : IND6 T -> IND6 A. + + +Module TemplateProp. + + (** Check lowering of a template universe polymorphic inductive to Prop *) + + Inductive Foo (A : Type) : Type := foo : A -> Foo A. + + Check Foo True : Prop. + +End TemplateProp. + +Module PolyNoLowerProp. + + (** Check lowering of a general universe polymorphic inductive to Prop is _failing_ *) + + Polymorphic Inductive Foo (A : Type) : Type := foo : A -> Foo A. + + Fail Check Foo True : Prop. + +End PolyNoLowerProp. |
