Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
guard infix:<but> against zero-arg calls on the RHS
closes RT #73990
  • Loading branch information
moritz committed Aug 7, 2012
1 parent 78c5c17 commit 34e8d4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Perl6/Actions.pm
Expand Up @@ -4085,9 +4085,8 @@ class Perl6::Actions is HLL::Actions {
}
}
else {
if $rhs[0].has_compile_time_value && +@($rhs) == 2 {
$past.push($rhs[0]);
$rhs[1].named('value');
if +@($rhs) && $rhs[0].has_compile_time_value && +@($rhs) == 2 {
$past.push($rhs[0]); $rhs[1].named('value');
$past.push($rhs[1]);
}
else {
Expand Down

0 comments on commit 34e8d4d

Please sign in to comment.