aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorherbelin2013-05-08 17:44:05 +0000
committerherbelin2013-05-08 17:44:05 +0000
commit01c7976340c59ee88e5f3b6c49a37a575efc9c4f (patch)
tree3dfbb55f920f0471c2b663406931ea2890fa374d /test-suite
parent0395451fb326551474a96ee802185070f4bf3595 (diff)
Share more information between constructors and arity of an inductive
type in order to solve implicit arguments. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16486 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/Inductive.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/success/Inductive.v b/test-suite/success/Inductive.v
index a63c99ebf9..3d4257543a 100644
--- a/test-suite/success/Inductive.v
+++ b/test-suite/success/Inductive.v
@@ -113,3 +113,11 @@ Inductive I A : A->Prop := C a : (forall A, A) -> I a.
Inductive list (A : Set) : Set :=
| nil : list A
| cons : A -> list (A -> A) -> list A.
+
+(* Check inference of evars in arity using information from constructors *)
+
+Inductive foo1 : forall p, Prop := cc1 : foo1 0.
+
+(* Check cross inference of evars from constructors *)
+
+Inductive foo2 : forall p, Prop := cc2 : forall q, foo2 q | cc3 : foo2 0.