Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Harden a check.
  • Loading branch information
jnthn committed Jul 25, 2012
1 parent a9dbdef commit 135013d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -3489,7 +3489,9 @@ class Perl6::Actions is HLL::Actions {
# Make first pass over arguments, finding any duplicate named
# arguments.
my $expr := $<EXPR>.ast;
my @args := $expr.name eq '&infix:<,>' ?? $expr.list !! [$expr];
my @args := nqp::istype($expr, QAST::Op) && $expr.name eq '&infix:<,>'
?? $expr.list
!! [$expr];
my %named_counts;
for @args {
if $_.isa(QAST::Op) && istype($_.returns, $Pair) {
Expand Down

0 comments on commit 135013d

Please sign in to comment.