make native trait inlining work
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Hash / exists.pm
index 099786a..64a1662 100644 (file)
@@ -33,10 +33,10 @@ sub _inline_check_arguments {
 }
 
 sub _return_value {
-    my $self        = shift;
-    my $slot_access = shift;
+    my $self = shift;
+    my ($slot_access) = shift;
 
-    return "exists ${slot_access}->{ \$_[0] }";
+    return 'exists ' . $slot_access . '->{ $_[0] }';
 }
 
 no Moose::Role;