]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/disambiguation/disambiguateTypes.ml
Most warnings turned into errors and avoided
[helm.git] / matita / components / disambiguation / disambiguateTypes.ml
index f6e03d098ccd555de2bab69a0b4f41bb417cf4b5..19c16d1305e89c3fdb0b734f370438eed5af5d38 100644 (file)
 
 (* $Id$ *)
 
+type 'a expected_type = [ `XTNone       (* unknown *)
+                        | `XTSome of 'a (* the given term *) 
+                       | `XTSort       (* any sort *)
+                       | `XTInd        (* any (co)inductive type *)
+                        ]
+
 type domain_item =
   | Id of string               (* literal *)
   | Symbol of string * int     (* literal, instance num *)
@@ -47,10 +53,10 @@ struct
 
   let find k env =
    match k with
-      Symbol (sym,n) ->
+      Symbol (sym,_n) ->
        (try find k env
         with Not_found -> find (Symbol (sym,0)) env)
-    | Num n ->
+    | Num _n ->
        (try find k env
         with Not_found -> find (Num 0) env)
     | _ -> find k env