ni: use MMMethod#global.is_init instead of MMMethod#is_init
[nit.git] / src / compiling / compiling_icode.nit
index 19c8eec..088c126 100644 (file)
@@ -689,7 +689,7 @@ redef class INative
                v.add_location(location)
                if method.is_intern then
                        compile_intern_method_to_c(v)
-               else if not method.is_init then
+               else if not method.global.is_init then
                        compile_extern_method_to_c(v)
                end
        end