is_inline as an argument
gfx [Tue, 18 Aug 2009 07:31:55 +0000 (16:31 +0900)]
lib/Class/MOP/Attribute.pm
lib/Class/MOP/Method/Accessor.pm

index b8a5357..294cdf5 100644 (file)
@@ -386,6 +386,7 @@ sub _process_accessors {
                 package_name         => $metaclass->name,
                 name                 => $accessor,
                 definition_context   => $method_ctx,
+                is_inline            => $metaclass->instance_metaclass->is_inlinable,
             );
         };
         confess "Could not create the '$type' method for " . $self->name . " because : $@" if $@;
index 80bb79e..58355a2 100644 (file)
@@ -59,7 +59,7 @@ sub _new {
         original_method      => $params->{original_method},
 
         # inherit from Class::MOP::Generated
-        is_inline            => $params->{associated_metaclass}->instance_metaclass->is_inlinable,
+        is_inline            => $params->{is_inline},
         definition_context   => $params->{definition_context},
 
         # defined in this class