]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_unification/cicRefine.ml
Bug fixed (that used to throw away a metasenv :-(
[helm.git] / helm / ocaml / cic_unification / cicRefine.ml
index 47d186dcb27425dfb7cf4aab0b2b5362fd8105fd..f30e3c53c0314819a825f62310b3fd28cbc0ae2c 100644 (file)
@@ -1045,7 +1045,7 @@ let typecheck metasenv uri obj =
                    let t = CicSubstitution.subst t' t in
                     i - 1,t
                  ) tys (typesno - 1,t)) in
-             let ty' = undebrujin ty in
+             let ty' = undebrujin ty' in
               metasenv,ugraph,(name,ty')::res
            ) cl (metasenv,ugraph,[])
          in