make native trait inlining work
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Hash / keys.pm
index 6c16a09..206875e 100644 (file)
@@ -17,10 +17,10 @@ with 'Moose::Meta::Method::Accessor::Native::Reader' =>
 sub _maximum_arguments { 0 }
 
 sub _return_value {
-    my $self        = shift;
-    my $slot_access = shift;
+    my $self = shift;
+    my ($slot_access) = @_;
 
-    return "keys \%{ ($slot_access) }";
+    return 'keys %{ (' . $slot_access . ') }';
 }
 
 no Moose::Role;