diff options
| author | herbelin | 2010-12-19 11:34:48 +0000 |
|---|---|---|
| committer | herbelin | 2010-12-19 11:34:48 +0000 |
| commit | b1ae368ec3228f7340076ba0d3bc465f79ed44fa (patch) | |
| tree | 0268bf96548df63d9c689a9c745d113d38f3de0b /test-suite | |
| parent | 396da69dc2716971741c90230ba3f65631a849d2 (diff) | |
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
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/CasesDep.v | 7 |
1 files changed, 7 insertions, 0 deletions
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. |
