]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_unification/cicRefine.ml
UniverseInconsistency is now wrapper by CicRefine.type_of_aux' to RefineFailure
[helm.git] / helm / ocaml / cic_unification / cicRefine.ml
index c5f775253a004bce33c6ea393fb5f3877dfa52d6..4a6e6cadf798ef6fd16c154da24d513a4520a968 100644 (file)
@@ -880,6 +880,13 @@ and type_of_aux' metasenv context t ugraph =
     (cleaned_t,cleaned_ty,cleaned_metasenv,ugraph1) 
 ;;
 
+let type_of_aux' metasenv context term ugraph =
+  try 
+    type_of_aux' metasenv context term ugraph
+  with 
+    CicUniv.UniverseInconsistency msg -> raise (RefineFailure msg)
+    
+
 (* DEBUGGING ONLY 
 let type_of_aux' metasenv context term =
  try