Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove left-over unbox in method delegation
  • Loading branch information
moritz committed Oct 15, 2012
1 parent 8a07b84 commit 0937c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/traits.pm
Expand Up @@ -272,7 +272,7 @@ multi trait_mod:<handles>(Attribute:D $target, $thunk) {

multi sub trait_mod:<handles>(Method:D $m, &thunk) {
my $pkg := $m.signature.params[0].type;
my $call_name := nqp::unbox_s($m.name);
my $call_name := $m.name;
for thunk() -> $meth_name {
my $meth := method (|c) is rw {
self."$call_name"()."$meth_name"(|c);
Expand Down

0 comments on commit 0937c72

Please sign in to comment.