Skip to content

Commit

Permalink
Prevent scope leakage, which caused my module Foo { constant Bar = 42…
Browse files Browse the repository at this point in the history
… } to end up declaring the constant my scoped.
  • Loading branch information
jnthn committed Aug 8, 2011
1 parent c49a3c9 commit 362dac2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Grammar.pm
Expand Up @@ -431,6 +431,7 @@ grammar Perl6::Grammar is HLL::Grammar {

token statement {
:my $*QSIGIL := '';
:my $*SCOPE := '';
<!before <[\])}]> | $ >
[
| <statement_control>
Expand Down

0 comments on commit 362dac2

Please sign in to comment.