diff options
| author | Gaëtan Gilbert | 2018-08-23 11:38:36 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2018-09-13 14:03:24 +0200 |
| commit | 6ccacec1b70b9de0ddd8d098f25c367ed975120a (patch) | |
| tree | f8266ef2f0be32765cfa270089d1564a26d8da6a /test-suite | |
| parent | 3881fb7b93196a304b332ae81f1debde1ce9aaf9 (diff) | |
Add option to control automatic template polymorphism.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/Template.v | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test-suite/success/Template.v b/test-suite/success/Template.v index a8fe1baa1b..1c6e2d81d8 100644 --- a/test-suite/success/Template.v +++ b/test-suite/success/Template.v @@ -1,6 +1,6 @@ Set Printing Universes. -Module Auto. +Module AutoYes. Inductive Box (A:Type) : Type := box : A -> Box A. About Box. @@ -10,7 +10,19 @@ Module Auto. Definition j_lebox (A:Type@{j}) := Box A. Definition box_lti A := Box A : Type@{i}. -End Auto. +End AutoYes. + +Module AutoNo. + Unset Auto Template Polymorphism. + Inductive Box (A:Type) : Type := box : A -> Box A. + + About Box. + + Universe i j. Constraint i < j. + Definition j_lebox (A:Type@{j}) := Box A. + Fail Definition box_lti A := Box A : Type@{i}. + +End AutoNo. Module Yes. #[template] |
