compiler: create var in `shortcut_equate` only if needed
[nit.git] / src / compiler / abstract_compiler.nit
index eeabf00..eea089a 100644 (file)
@@ -2211,6 +2211,8 @@ redef class AMethPropdef
 end
 
 redef class AAttrPropdef
+       redef fun can_inline: Bool do return not is_lazy
+
        redef fun compile_to_c(v, mpropdef, arguments)
        do
                if mpropdef == mreadpropdef then