]> matita.cs.unibo.it Git - helm.git/commitdiff
catch just AssertFailure instead of _ (AssertFailure is the only
authorStefano Zacchiroli <zack@upsilon.cc>
Tue, 3 Feb 2004 14:10:53 +0000 (14:10 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Tue, 3 Feb 2004 14:10:53 +0000 (14:10 +0000)
exception that could be raised there since the invoked function wraps
every exception inside it)

helm/ocaml/cic_unification/cicUnification.ml

index 70c7aa9cb17c1511394233117c8f7787c04fad38..1dc4ae2bd0f08c373e7b96d359fa7a4a9e8ac249 100644 (file)
@@ -106,7 +106,7 @@ let rec fo_unif_subst subst context metasenv t1 t2 =
             type_of_aux' metasenv' subst'' context t
           in
            fo_unif_subst subst'' context metasenv' (S.lift_meta l meta_type) tyt
-        with _ ->
+        with AssertFailure _ ->
           (* TODO huge hack!!!!
            * we keep on unifying/refining in the hope that the problem will be
            * eventually solved. In the meantime we're breaking a big invariant: