From: Claudio Sacerdoti Coen Date: Wed, 9 Apr 2008 15:59:57 +0000 (+0000) Subject: Bug fixed: references to CoFix are CoFix, not Fix. X-Git-Tag: make_still_working~5372 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=c4b189a6732274861fa93587019af6d5206f9a79;p=helm.git Bug fixed: references to CoFix are CoFix, not Fix. --- diff --git a/helm/software/components/ng_kernel/nCicEnvironment.ml b/helm/software/components/ng_kernel/nCicEnvironment.ml index 599e1691f..52c3ebca7 100644 --- a/helm/software/components/ng_kernel/nCicEnvironment.ml +++ b/helm/software/components/ng_kernel/nCicEnvironment.ml @@ -58,13 +58,13 @@ let get_checked_indtys = function ;; 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;;