Skip to content

Commit

Permalink
Corret mistake in anonymising lexical subs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 2, 2009
1 parent 8eb5225 commit c40f3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/actions.pm
Expand Up @@ -1939,7 +1939,7 @@ method scope_declarator($/) {
if $scope eq 'lexical' {
# Block needs to become anonymous; register lexical name.
my $name := $past.name();
$past.name(undef);
$past.name($past.unique('block_'));
$block.symbol($name, :scope('lexical'));

if $past<multi_flag> {
Expand Down

0 comments on commit c40f3b9

Please sign in to comment.