nitg-s: do not compile_class_to_c for abstract classes and interfaces
authorJean Privat <jean@pryen.org>
Sat, 3 Aug 2013 01:41:26 +0000 (21:41 -0400)
committerJean Privat <jean@pryen.org>
Sat, 3 Aug 2013 01:41:26 +0000 (21:41 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/separate_compiler.nit

index a2e5128..a187720 100644 (file)
@@ -70,6 +70,7 @@ redef class ModelBuilder
                compiler.do_property_coloring
                for m in mainmodule.in_importation.greaters do
                        for mclass in m.intro_mclasses do
+                               if mclass.kind == abstract_kind or mclass.kind == interface_kind then continue
                                compiler.compile_class_to_c(mclass)
                        end
                end