Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bug with has ($!a, $!b) style decls.
  • Loading branch information
jnthn committed Jul 9, 2011
1 parent 1762378 commit aeb6b08
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Perl6/Actions.pm
Expand Up @@ -955,8 +955,11 @@ class Perl6::Actions is HLL::Actions {
for @params {
if $_<variable_name> {
my $past := PAST::Var.new( :name($_<variable_name>) );
$list.push(declare_variable($/, $past, $_<sigil>,
$_<twigil>, $_<desigilname>, []));
$past := declare_variable($/, $past, $_<sigil>, $_<twigil>,
$_<desigilname>, []);
unless $past.isa(PAST::Op) && $past.pasttype eq 'null' {
$list.push($past);
}
}
else {
$list.push($*ST.build_container_past(
Expand Down

0 comments on commit aeb6b08

Please sign in to comment.