aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-09-23 14:08:22 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-09-23 14:08:22 +0000
commit577c6d95f16701190c12c592d13893eff3363ac0 (patch)
tree3ca3a4ff8f7329d37ae5e373a25fb5e35cb4e572 /pretyping
parent57080690d26ebcc9fcd86064f184dc1b52dc9b29 (diff)
Correction bug #1168 (dans les coercions de pattern, c'est le nombre
de paramètres réels du constructeur qui compte et non le nombre total de paramètres de la coercion) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9168 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/classops.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/pretyping/classops.ml b/pretyping/classops.ml
index 62c721b8b..8f30f3fb8 100644
--- a/pretyping/classops.ml
+++ b/pretyping/classops.ml
@@ -154,7 +154,8 @@ let lookup_pattern_path_between (s,t) =
coe.coe_value
in
match kind_of_term c with
- | Construct sp -> (sp, coe.coe_param)
+ | Construct cstr ->
+ (cstr, Inductiveops.constructor_nrealargs (Global.env()) cstr -1)
| _ -> raise Not_found) l
(* find_class_type : constr -> cl_typ * int *)