grammar: allows constructors in extern classes
[nit.git] / src / compiling / compiling_icode.nit
index b7aeb12..754b43f 100644 (file)
@@ -675,7 +675,7 @@ redef class INative
                v.add_location(location)
                if method.is_intern then
                        compile_intern_method_to_c(v)
-               else
+               else if not method.is_init then
                        compile_extern_method_to_c(v)
                end
        end