X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicTypeChecker.ml;h=951f68dbd84b28043a100fe3c72c114d4f5927a7;hb=771ee8b9d122fa963881c876e86f90531bb7434f;hp=5da471a6eb8b934a2239c9994d640925213f91f3;hpb=cd8062bb6dbbc4564c4d35e3bc1557b030568902;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/cicTypeChecker.ml b/helm/ocaml/cic_proof_checking/cicTypeChecker.ml index 5da471a6e..951f68dbd 100644 --- a/helm/ocaml/cic_proof_checking/cicTypeChecker.ml +++ b/helm/ocaml/cic_proof_checking/cicTypeChecker.ml @@ -23,6 +23,8 @@ * http://cs.unibo.it/helm/. *) +(* $Id$ *) + (* TODO factorize functions to frequent errors (e.g. "Unknwon mutual inductive * ...") *) @@ -42,7 +44,7 @@ let debug t context = raise (TypeCheckerFailure (lazy (List.fold_right debug_aux (t::context) ""))) ;; -let debug_print = fun _ -> () ;; +let debug_print = fun _ -> ();; let rec split l n = match (l,n) with @@ -2057,7 +2059,10 @@ let typecheck_obj0 ~logger uri ugraph = let b,ugraph = (CicReduction.are_convertible [] ty_te ty ugraph) in if not b then raise (TypeCheckerFailure - (lazy "the type of the body is not the one expected")) + (lazy + ("the type of the body is not the one expected:\n" ^ + CicPp.ppterm ty_te ^ "\nvs\n" ^ + CicPp.ppterm ty))) else ugraph | C.Constant (_,None,ty,_,_) ->