]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/nCicUntrusted.ml
Fix : wrong exception was catch in apply_subst
[helm.git] / helm / software / components / ng_kernel / nCicUntrusted.ml
index baae7f9c2f7486e1561b3ad6a47eddaeb7522c5b..633ecea576540e80ed8786eef5916c6bcd783c88 100644 (file)
@@ -177,7 +177,7 @@ let apply_subst subst context t =
        let t = NCicSubstitution.subst_meta lc t in
         apply_subst subst () t
       with
-       Not_found ->
+       NCicUtils.Subst_not_found j when j = i ->
         match lc with
            _,NCic.Irl _ -> NCic.Meta (i,lc)
          | n,NCic.Ctx l ->