]> matita.cs.unibo.it Git - helm.git/commitdiff
avoid fixing non-recursive terms
authorEnrico Tassi <enrico.tassi@inria.fr>
Tue, 16 Jun 2009 21:57:36 +0000 (21:57 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Tue, 16 Jun 2009 21:57:36 +0000 (21:57 +0000)
helm/software/components/grafite_engine/grafiteEngine.ml

index 1a88b0be1121c770307ebc1e3eb4a9b5f7b9c588..98bfef9d6f5c60a6b445e2c2feb400032e1955f6 100644 (file)
@@ -814,7 +814,12 @@ let rec eval_command = {ec_go = fun ~disambiguate_command opts status
                     | NReference.Decl as s -> s))
                 | t -> NCicUtils.map (fun _ () -> ()) () fix t
               in
-              let obj_kind = NCicUntrusted.map_obj_kind (fix ()) obj_kind in
+              let obj_kind = 
+                match obj_kind with
+                | NCic.Fixpoint _ -> 
+                    NCicUntrusted.map_obj_kind (fix ()) obj_kind 
+                | _ -> obj_kind
+              in
               let obj = uri,height,[],[],obj_kind in
                NCicTypeChecker.typecheck_obj obj;
                let timestamp = NCicLibrary.add_obj uri obj in