X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_refiner%2FnCicRefiner.ml;h=0926db84081896b0717d086e5d2814857c4a4fb9;hb=95a6821ff8ad21cd3d11d6472a882d146676979f;hp=10881fa3490723013c706afd77ba8ce7f5a63076;hpb=a09f5b76d65deba858fbba1a8b6e8481702d2166;p=helm.git diff --git a/helm/software/components/ng_refiner/nCicRefiner.ml b/helm/software/components/ng_refiner/nCicRefiner.ml index 10881fa34..0926db840 100644 --- a/helm/software/components/ng_refiner/nCicRefiner.ml +++ b/helm/software/components/ng_refiner/nCicRefiner.ml @@ -506,10 +506,12 @@ and eat_prods rdb ~localise force_ty metasenv subst context expty orig_t orig_he | C.Match (_,_,C.Meta _,_) | C.Match (_,_,C.Appl (C.Meta _ :: _),_) | C.Appl (C.Const (NReference.Ref (_, NReference.Fix _)) :: _) -> + too_many_args := true; raise (Uncertain (lazy (localise orig_he, Printf.sprintf ("The term %s is here applied to %d arguments but expects " ^^ "only %d arguments") (NCicPp.ppterm ~metasenv ~subst ~context he) - (List.length args) (List.length args_so_far)))) + (List.length args + List.length args_so_far) + (List.length args_so_far)))) | ty -> let metasenv, subst, newhead, newheadty = too_many_args := true;