make native trait inlining work
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / uniq.pm
index 9203f52..b49faf8 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 "List::MoreUtils::uniq \@{ ($slot_access) }";
+    return 'List::MoreUtils::uniq @{ (' . $slot_access . ') }';
 }
 
 no Moose::Role;