]> matita.cs.unibo.it Git - helm.git/commitdiff
add_moo_content does not add a coercion statement twice
authorEnrico Tassi <enrico.tassi@inria.fr>
Fri, 5 Jan 2007 11:37:25 +0000 (11:37 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Fri, 5 Jan 2007 11:37:25 +0000 (11:37 +0000)
components/grafite_engine/grafiteTypes.ml

index 80efca87aa05b6e968ffeee01c1ae3682aaf20bb..43d8e7f17b6d987f29121293975be38aa7186ba7 100644 (file)
@@ -125,7 +125,8 @@ let add_moo_content cmds status =
 (*         prerr_endline ("adding to moo command: " ^ GrafiteAstPp.pp_command cmd); *)
         match cmd with
         | GrafiteAst.Default _ 
-        | GrafiteAst.Index _ ->
+        | GrafiteAst.Index _
+        | GrafiteAst.Coercion _ ->
             if List.mem cmd content then acc
             else cmd :: acc
         | _ -> cmd :: acc)