modelize: add `AAttrPropdef::mtype` to factorize the type access
[nit.git] / src / semantize / typing.nit
index 44ed320..3bca2cb 100644 (file)
@@ -768,7 +768,7 @@ redef class AAttrPropdef
 
                var nexpr = self.n_expr
                if nexpr != null then
-                       var mtype = self.mpropdef.static_mtype
+                       var mtype = self.mtype
                        v.visit_expr_subtype(nexpr, mtype)
                end
                var nblock = self.n_block