diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2006-01-30 23:11:55 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2006-01-30 23:11:55 +0000 |
commit | 4778808664c919ffead4e9f01ff5475335d8d1fa (patch) | |
tree | 9532992421992a2d3007a25dc76226b3203fb7b7 /test-suite | |
parent | d0f7823ee36cf443bd1c9632c272b54816599f99 (diff) |
Prise en compte coercions autour des sous-termes filtrés (si non dépendants)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7961 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite')
-rw-r--r-- | test-suite/success/Case13.v | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/success/Case13.v b/test-suite/success/Case13.v index 670d01f76..f19e24b88 100644 --- a/test-suite/success/Case13.v +++ b/test-suite/success/Case13.v @@ -54,3 +54,16 @@ Check (fun x : I' 0 => match x with | C2' _ niln => 0 | _ => 0 end). + +(* Check insertion of coercions around matched subterm *) + +Parameter A:Set. +Parameter f:> A -> nat. + +Inductive J : Set := D : A -> J. + +Check (fun x => match x with + | D 0 => 0 + | D _ => 1 + end). + |