Skip to content

Commit

Permalink
Fix declaring multiple lexical classes in a given scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed May 1, 2010
1 parent 376196d commit db73c1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Compiler/Package.pm
Expand Up @@ -214,6 +214,7 @@ method finish($block) {
}
elsif $!scope eq 'my' {
# Install a binding of the declaration to a name in the lexpad.
$decl := PAST::Block.new( :blocktype('immediate'), $decl );
@Perl6::Actions::BLOCK[0][0].push(PAST::Var.new(
:name($!name), :isdecl(1), :viviself($decl), :scope('lexical')
));
Expand Down

0 comments on commit db73c1f

Please sign in to comment.