nitg*: extern classes a polymorph in Nit, and unboxed only for extern methods
[nit.git] / src / model / model.nit
index fe4eade..a0f8c43 100644 (file)
@@ -217,8 +217,7 @@ redef class MModule
        private var object_type_cache: nullable MClassType
 
        # The type `Pointer`, super class to all extern classes
-       fun pointer_type: MClassType
-       is cached do return self.get_primitive_class("Pointer").mclass_type
+       var pointer_type: MClassType = self.get_primitive_class("Pointer").mclass_type is lazy
 
        # The primitive type `Bool`
        fun bool_type: MClassType