aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/polymorphism.v8
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.