;;
let get_checked_fix_or_cofix b = function
- | NReference.Ref (_, uri, NReference.Fix (fixno,_)) ->
+ | NReference.Ref (_, uri, (NReference.Fix (fixno,_)|NReference.CoFix fixno))->
(match get_checked_obj uri with
| _,height,_,_, NCic.Fixpoint (is_fix,funcs,att) when is_fix = b ->
let rlv, name, _, ty, bo = List.nth funcs fixno in
rlv, name, bo, ty, att, height
| _ ->prerr_endline "get_checked_(co)fix on a non (co)fix 2";assert false)
- | _ -> prerr_endline "get_checked_(co)fix on a non (co)fix"; assert false
+ | r -> prerr_endline ("get_checked_(co)fix on " ^ NReference.string_of_reference r); assert false
;;
let get_checked_fix r = get_checked_fix_or_cofix true r;;
let get_checked_cofix r = get_checked_fix_or_cofix false r;;