]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/basic_rg/brgUntrusted.ml
- we added a parser for lambda-delta textual syntax (file extension .hln)
[helm.git] / helm / software / lambda-delta / basic_rg / brgUntrusted.ml
index 311061aaac2866061008041d6507b00ee182855c..4c1ae61dbc47cfd6cd40220d5832c4e95201f15e 100644 (file)
@@ -28,6 +28,10 @@ let type_check err f st = function
       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