compiler: do not inline lazy getters
authorJean Privat <jean@pryen.org>
Wed, 17 Dec 2014 20:42:01 +0000 (15:42 -0500)
committerJean Privat <jean@pryen.org>
Wed, 17 Dec 2014 20:42:01 +0000 (15:42 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/compiler/abstract_compiler.nit

index 2f58f29..d1441d2 100644 (file)
@@ -2199,6 +2199,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