diff options
| author | herbelin | 2006-10-29 20:11:08 +0000 |
|---|---|---|
| committer | herbelin | 2006-10-29 20:11:08 +0000 |
| commit | dfe97724fb6034fc06b3ef693f6a3ed94733adbc (patch) | |
| tree | 673d36afb27326fe8bd5a5165203a8199405833d /test-suite | |
| parent | 631769875f5a7e099cf814ac7b1aaab624f40a9d (diff) | |
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
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/polymorphism.v | 8 |
1 files changed, 8 insertions, 0 deletions
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. |
