Skip to content

Commit

Permalink
Fix (my %) over-sharing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jan 11, 2013
1 parent dfefd94 commit bd9bc6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -1706,8 +1706,13 @@ class Perl6::Actions is HLL::Actions does STDActions {
elsif $lex<also_uses> && $lex<also_uses>{$name} {
$/.CURSOR.typed_sorry('X::Redeclaration::Outer', symbol => $name);
}
make declare_variable($/, $past, ~$sigil, ~$twigil, ~$<variable><desigilname>, $<trait>, $<semilist>);
}
else {
my %cont_info := container_type_info($/, ~$sigil || '$', []);
make $*W.build_container_past(%cont_info,
$*W.create_container_descriptor(%cont_info<value_type>, 1, 'anon'));
}
make declare_variable($/, $past, ~$sigil, ~$twigil, ~$<variable><desigilname>, $<trait>, $<semilist>);
}

sub declare_variable($/, $past, $sigil, $twigil, $desigilname, $trait_list, $shape?) {
Expand Down

0 comments on commit bd9bc6f

Please sign in to comment.