]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/basic_ag/bagUntrusted.ml
- we implemented the hierarchy and sort names declaration in text parser
[helm.git] / helm / software / lambda-delta / basic_ag / bagUntrusted.ml
index 08a1750c4be0dfd3968eee9a17ca284dc140ea0d..33d6a5fbd21985d776425272fd2848e0c8a209ed 100644 (file)
@@ -19,10 +19,11 @@ module T = BagType
 (* Interface functions ******************************************************)
 
 (* to share *)
-let type_check f ?(si=false) g = function
+let type_check f st = function
    | a, uri, Y.Abst t ->
       let f xt tt = E.set_entity (f tt) (a, uri, Y.Abst xt) in
-      L.loc := U.string_of_uri uri; T.type_of f ~si g B.empty_lenv t
+      L.loc := U.string_of_uri uri; T.type_of f st B.empty_lenv t
    | a, uri, Y.Abbr t ->
       let f xt tt = E.set_entity (f tt) (a, uri, Y.Abbr xt) in
-      L.loc := U.string_of_uri uri; T.type_of f ~si g B.empty_lenv t
+      L.loc := U.string_of_uri uri; T.type_of f st B.empty_lenv t
+   | _, _, Y.Void     -> assert false