Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'more-param-perl' of github.com:peschwa/rakudo into nom
  • Loading branch information
moritz committed Jan 12, 2015
2 parents 25956c3 + 1c097d4 commit 107a5c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Parameter.pm
Expand Up @@ -174,7 +174,7 @@ my class Parameter { # declared in BOOTSTRAP
$perl ~= ':U';
}
$perl ~= " ::$_" for @($.type_captures);
my $name = $!variable_name || '';
my $name = $.name;
if $!flags +& $SIG_ELEM_IS_CAPTURE {
$name = '|' ~ $name;
} elsif $!flags +& $SIG_ELEM_IS_PARCEL {
Expand Down Expand Up @@ -215,7 +215,7 @@ my class Parameter { # declared in BOOTSTRAP
$sig ~~ s/^^ ':'//;
$rest ~= ' ' ~ $sig;
}
if $name ne '$' or $rest {
if $name or $rest {
$perl ~= ($perl ?? ' ' !! '') ~ $name;
$perl ~~ s/^^ \s* Mu \s+//;
}
Expand Down

0 comments on commit 107a5c2

Please sign in to comment.