]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/oCicTypeChecker.ml
fixed bug in translating Fix, recno was not properly computed
[helm.git] / helm / software / components / ng_kernel / oCicTypeChecker.ml
index 2139654c7bd47280d155fa40c23cd2c2825898b1..396144a5d3c9b499dd7fb6829e282292e5a0a16b 100644 (file)
@@ -1,7 +1,8 @@
 
 let typecheck_obj uri obj =
   try 
-    NCicTypeChecker.typecheck_obj (OCic2NCic.convert_obj uri obj); true
+    NCicTypeChecker.typecheck_obj (HExtlib.list_last (OCic2NCic.convert_obj uri
+    obj)); true
   with 
     | NCicTypeChecker.TypeCheckerFailure _
     | NCicTypeChecker.AssertFailure _ -> false