diff options
Diffstat (limited to 'pretyping/classops.ml')
-rw-r--r-- | pretyping/classops.ml | 3 |
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 *) |