Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix empty statement in semilist handling.
  • Loading branch information
jnthn committed Oct 15, 2012
1 parent 0937c72 commit 726d2fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Actions.pm
Expand Up @@ -532,9 +532,9 @@ class Perl6::Actions is HLL::Actions {
method semilist($/) {
my $past := QAST::Stmts.new( :node($/) );
if $<statement> {
for $<statement> { $past.push($_.ast); }
for $<statement> { $past.push($_.ast) if $_.ast; }
}
else {
unless +@($past) {
$past.push( QAST::Op.new( :op('call'), :name('&infix:<,>') ) );
}
make $past;
Expand Down

0 comments on commit 726d2fa

Please sign in to comment.