diff options
| author | herbelin | 2006-06-22 22:21:07 +0000 |
|---|---|---|
| committer | herbelin | 2006-06-22 22:21:07 +0000 |
| commit | 7e83f185611181144a25adff426a1c64bbbf01e2 (patch) | |
| tree | b79268fc7ec70e028ee1febf6d45a2f01ac0a723 | |
| parent | 0082d2c498f90452a706f18539c10722028fdfb8 (diff) | |
Deux vérifications que le polymorphisme de sorte des inductifs ne fonctionne pas incorrectement
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8974 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | test-suite/failure/inductive1.v | 4 | ||||
| -rw-r--r-- | test-suite/failure/inductive2.v | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/failure/inductive1.v b/test-suite/failure/inductive1.v new file mode 100644 index 0000000000..3b57d9198d --- /dev/null +++ b/test-suite/failure/inductive1.v @@ -0,0 +1,4 @@ +(* A check that sort-polymorphic product is not set too low *) + +Inductive prod (A B:Type) : Type := pair : A -> B -> prod A B. +Check (fun (A:Type) (B:Prop) => (prod A B : Prop)). diff --git a/test-suite/failure/inductive2.v b/test-suite/failure/inductive2.v new file mode 100644 index 0000000000..b77474be08 --- /dev/null +++ b/test-suite/failure/inductive2.v @@ -0,0 +1,4 @@ +(* A check that sort-polymorphic product is not set too low *) + +Inductive prod (A B:Type) : Type := pair : A -> B -> prod A B. +Check (fun (A:Prop) (B:Type) => (prod A B : Prop)). |
