]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/basic_ag/bagUntrusted.ml
we removed some old code and fixed a reduction bug: two instances fo the
[helm.git] / helm / software / lambda-delta / basic_ag / bagUntrusted.ml
index e80a06125cf286f037394b1a5cb7d1385256c605..600807c670a48624bfa0659b7643ba5096455450 100644 (file)
@@ -9,6 +9,7 @@
      \ /   This software is distributed as is, NO WARRANTY.              
       V_______________________________________________________________ *)
 
+module L = Log
 module B = Bag
 module E = BagEnvironment
 module T = BagType
@@ -21,11 +22,11 @@ let type_check f g = function
    | Some (a, uri, B.Abst t) ->
       let f tt obj = f (Some tt) (Some obj) in
       let f xt tt = E.set_obj (f tt) (a, uri, B.Abst xt) in
-      T.type_of f g B.empty_context t
+      L.loc := a; T.type_of f g B.empty_context t
    | Some (a, uri, B.Abbr t) ->
       let f tt obj = f (Some tt) (Some obj) in
       let f xt tt = E.set_obj (f tt) (a, uri, B.Abbr xt) in
-      T.type_of f g B.empty_context t
+      L.loc := a; T.type_of f g B.empty_context t
    | Some (a, uri, B.Void)   ->
       let f obj = f None (Some obj) in
-      E.set_obj f (a, uri, B.Void)
+      L.loc := a; E.set_obj f (a, uri, B.Void)