]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/src/basic_rg/brgUntrusted.ml
- initial support for abstractions with explicit levels
[helm.git] / helm / software / lambda-delta / src / basic_rg / brgUntrusted.ml
index 1602061983d0d50ee8f5987557dc70e71628070b..27f471f9a81eb8899f05f6cf9ed0492f049ab66c 100644 (file)
@@ -21,12 +21,12 @@ module BT = BrgType
 
 (* to share *)
 let type_check err f st = function
-   | a, uri, E.Abst t ->
+   | a, uri, E.Abst (n, t) ->
       let f xt tt = 
-         let e = BE.set_entity (a, uri, E.Abst xt) in f tt e
+         let e = BE.set_entity (a, uri, E.Abst (n, xt)) in f tt e
       in
       L.loc := U.string_of_uri uri; BT.type_of err f st BR.empty_kam t
-   | a, uri, E.Abbr t ->
+   | a, uri, E.Abbr t      ->
       let f xt tt = 
          let xt = match xt with
            | B.Cast _ -> xt
@@ -35,4 +35,4 @@ let type_check err f st = function
          let e = BE.set_entity (a, uri, E.Abbr xt) in f tt e
       in
       L.loc := U.string_of_uri uri; BT.type_of err f st BR.empty_kam t
-   | _, _, E.Void     -> assert false
+   | _, _, E.Void          -> assert false