]> matita.cs.unibo.it Git - helm.git/blobdiff - components/cic_disambiguation/disambiguateTypes.ml
Bug fixed: a symbol alias Symb(s,0) now subsumes the case Symb(s,n) for each n.
[helm.git] / components / cic_disambiguation / disambiguateTypes.ml
index 79388f8198d3e20372a6f19c6ad17d55d0e0837a..a360dde384dfd87655864467bcbd8211beb0ab08 100644 (file)
@@ -55,6 +55,13 @@ 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)
+    | _ -> find k env
+
   let cons k v env =
     try
       let current = find k env in