From f1c2d541fb48f74f89e63a681d274de6b939a8db Mon Sep 17 00:00:00 2001 From: herbelin Date: Fri, 3 Dec 2010 20:04:13 +0000 Subject: Fixing bug using explictly declared implicit arguments in inductive arities. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13671 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/success/implicit.v | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test-suite') diff --git a/test-suite/success/implicit.v b/test-suite/success/implicit.v index ce3e692f4a..f446cd2dfa 100644 --- a/test-suite/success/implicit.v +++ b/test-suite/success/implicit.v @@ -107,3 +107,19 @@ Context {A:Set}. Definition h (a:A) := a. End C. Check h 0. + +(* Check implicit arguments in arity of inductive types. The three + following examples used to fail before r13671 *) + +Inductive I {A} (a:A) : forall {n:nat}, Prop := + | C : I a (n:=0). + +Inductive I2 (x:=0) : Prop := + | C2 {p:nat} : p = 0 -> I2. +Check C2 eq_refl. + +Inductive I3 {A} (x:=0) (a:A) : forall {n:nat}, Prop := + | C3 : I3 a (n:=0). + +Inductive I3 {A} (x:=0) (a:A) : forall {n:nat}, Prop := + | C2 {p} : I2 a (n:=p). -- cgit v1.2.3