From dfe97724fb6034fc06b3ef693f6a3ed94733adbc Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 29 Oct 2006 20:11:08 +0000 Subject: Compatibilité du polymorphisme de constantes avec les sections. Amélioration affichage des univers. Réparation de petits oublis du premier commit. Essai d'une nouvelle stratégie : si le type d'une constante est mentionné explicitement, la constante est monomorphe dans Type. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9314 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/success/polymorphism.v | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test-suite/success/polymorphism.v (limited to 'test-suite/success') diff --git a/test-suite/success/polymorphism.v b/test-suite/success/polymorphism.v new file mode 100644 index 0000000000..a49b927da7 --- /dev/null +++ b/test-suite/success/polymorphism.v @@ -0,0 +1,8 @@ +(* Some tests of sort-polymorphisme *) +Section S. +Variable A:Type. +Definition f (B:Type) := (A * B)%type. +Inductive I (B:Type) : Type := prod : A->B->I B. +End S. +Check f nat nat : Set. +Check I nat nat : Set. -- cgit v1.2.3