(* 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