From b1ae368ec3228f7340076ba0d3bc465f79ed44fa Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 19 Dec 2010 11:34:48 +0000 Subject: Fixing bug #2454: inversion predicate strategy for inferring the type of "match" is not general enough; if there is a non dependent type constraint, we also try w/o inversion predicate in the return clause. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13727 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/success/CasesDep.v | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test-suite') diff --git a/test-suite/success/CasesDep.v b/test-suite/success/CasesDep.v index 2972184338..af6e2cd336 100644 --- a/test-suite/success/CasesDep.v +++ b/test-suite/success/CasesDep.v @@ -506,3 +506,10 @@ Definition test (s:step E E) := | Step nil _ (cons E nil) _ Plus l l' => true | _ => false end. + +(* Testing regression of bug 2454 ("get" used not be type-checkable when + defined with its type constraint) *) + +Inductive K : nat -> Type := KC : forall (p q:nat), K p. + +Definition get : K O -> nat := fun x => match x with KC p q => q end. -- cgit v1.2.3