Skip to content

Commit

Permalink
Don't loop over @!named_names for *% parameters in Parameter.raku
Browse files Browse the repository at this point in the history
@!named_names should always be null for slurpy named parameters.
  • Loading branch information
Kaiepi committed Mar 29, 2020
1 parent a4fbbfa commit 2f8538e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Parameter.pm6
Expand Up @@ -574,7 +574,7 @@ my class Parameter { # declared in BOOTSTRAP
} else {
$name ~= $sigil ~ $twigil ~ $usage-name;
}
if $.named {
if nqp::isconcrete(@!named_names) {
my $var-is-named = False;
my @outer-names = gather for @.named_names {
if !$var-is-named && $_ eq $usage-name {
Expand Down

0 comments on commit 2f8538e

Please sign in to comment.