Skip to content

Commit

Permalink
Make sure handle_named_parameter doesn't blow up on literals in PAST …
Browse files Browse the repository at this point in the history
…trees.
  • Loading branch information
jnthn committed Feb 8, 2010
1 parent 2d24344 commit c5340f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -1427,7 +1427,7 @@ method arglist($/) {
}

sub handle_named_parameter($arg) {
if $arg.returns() eq 'Pair' {
if $arg ~~ PAST::Node && $arg.returns() eq 'Pair' {
my $result := $arg[2];
$result.named(~$arg[1].value());
$result;
Expand Down

0 comments on commit c5340f2

Please sign in to comment.