]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/basic_ag/bagType.ml
Minor bag fixed, relative to failures.
[helm.git] / helm / software / lambda-delta / basic_ag / bagType.ml
index 1bc6fb2259869276fcbc6003b90dc774e6adb64f..dbf1bd4ebdc11cea0d652d5ab6fff5e9384f0ec0 100644 (file)
@@ -51,7 +51,7 @@ let rec b_type_of f ~si g c x =
    log1 "Now checking" c x;
    match x with
    | B.Sort h                    ->
-      let f h = f x (B.Sort h) in H.apply f g h
+      let h = H.apply g h in f x (B.Sort h) 
    | B.LRef i                    ->
       let f = function
          | Some (_, B.Abst w)               -> f x w
@@ -68,6 +68,7 @@ let rec b_type_of f ~si g c x =
          | _, _, Y.Abst w               -> f x w
         | _, _, Y.Abbr (B.Cast (w, v)) -> f x w
         | _, _, Y.Abbr _               -> assert false
+        | _, _, Y.Void                 -> assert false
       in
       E.get_entity f uri   
    | B.Bind (l, id, B.Abbr v, t) ->