rename 'package' to 'module'
[nit.git] / src / compiling / icode_generator.nit
index 5af858f..9d8a166 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 # Generates ICode as an output format
-package icode_generator
+module icode_generator
 
 private import compiling_base
 import program
@@ -79,6 +79,7 @@ redef class MMLocalClass
                                if not pg.is_init_for(self) then continue
                                var p = self[pg]
                                assert p isa MMMethod
+                               if not new_instance_iroutine.has_key(p) then continue
                                var icd = new FileICodeDumper(file)
                                icd.indent
                                file.write("New instance:: {p.full_name}\n")