X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Fcic_disambiguation%2FdisambiguateTypes.ml;h=8263fd3152b8c2c05bb13e7ce25c64e36f53d8c1;hb=62e3a3ce3ac21ab25074ad2af1883a4b0cbc62be;hp=79388f8198d3e20372a6f19c6ad17d55d0e0837a;hpb=cbcd34fe15122eb9835a5226b98be1050b097d6a;p=helm.git diff --git a/components/cic_disambiguation/disambiguateTypes.ml b/components/cic_disambiguation/disambiguateTypes.ml index 79388f819..8263fd315 100644 --- a/components/cic_disambiguation/disambiguateTypes.ml +++ b/components/cic_disambiguation/disambiguateTypes.ml @@ -55,6 +55,16 @@ struct include Environment' + let find k env = + match k with + Symbol (sym,n) -> + (try find k env + with Not_found -> find (Symbol (sym,0)) env) + | Num n -> + (try find k env + with Not_found -> find (Num 0) env) + | _ -> find k env + let cons k v env = try let current = find k env in