Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix my scoped regexes in classes
Regexes tried to install itself into the class, and then exploded by getting a Cursor instead
of the type of the class.
  • Loading branch information
FROGGS committed May 18, 2014
1 parent 0a2f0cd commit 57a08ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -3247,7 +3247,7 @@ class Perl6::Actions is HLL::Actions does STDActions {

# Do the various tasks to turn the block into a method code object.
my $inv_type := $*W.find_symbol([ # XXX Maybe Cursor below, not Mu...
$name && $*W.is_lexical('$?CLASS') ?? '$?CLASS' !! 'Mu']);
$name && $*SCOPE ne 'my' && $*W.is_lexical('$?CLASS') ?? '$?CLASS' !! 'Mu']);
methodize_block($/, $code, $past, %sig_info, $inv_type);

# Need to put self into a register for the regex engine.
Expand Down

0 comments on commit 57a08ad

Please sign in to comment.