L.loc := U.string_of_uri uri; T.type_of err f st R.empty_kam t
| a, uri, Y.Abbr t ->
let f xt tt =
+ let xt = match xt with
+ | B.Cast _ -> xt
+ | _ -> B.Cast ([], tt, xt)
+ in
let e = E.set_entity (a, uri, Y.Abbr xt) in f tt e
in
L.loc := U.string_of_uri uri; T.type_of err f st R.empty_kam t