From 7e83f185611181144a25adff426a1c64bbbf01e2 Mon Sep 17 00:00:00 2001 From: herbelin Date: Thu, 22 Jun 2006 22:21:07 +0000 Subject: Deux vérifications que le polymorphisme de sorte des inductifs ne fonctionne pas incorrectement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8974 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/failure/inductive1.v | 4 ++++ test-suite/failure/inductive2.v | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 test-suite/failure/inductive1.v create mode 100644 test-suite/failure/inductive2.v (limited to 'test-suite') diff --git a/test-suite/failure/inductive1.v b/test-suite/failure/inductive1.v new file mode 100644 index 000000000..3b57d9198 --- /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 000000000..b77474be0 --- /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)). -- cgit v1.2.3