modelize: get the Bool type faster
authorJean Privat <jean@pryen.org>
Fri, 22 Apr 2016 00:54:32 +0000 (20:54 -0400)
committerJean Privat <jean@pryen.org>
Fri, 22 Apr 2016 23:17:48 +0000 (19:17 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/modelize/modelize_property.nit

index df8f8bd..141ed81 100644 (file)
@@ -1463,7 +1463,7 @@ redef class AAttrPropdef
 
                var mlazypropdef = self.mlazypropdef
                if mlazypropdef != null then
-                       mlazypropdef.static_mtype = modelbuilder.model.get_mclasses_by_name("Bool").first.mclass_type
+                       mlazypropdef.static_mtype = mmodule.bool_type
                end
                check_repeated_types(modelbuilder)
        end