Skip to content

Commit fbfccdf

Browse files
committed
Make sure that regex/token/rule set 'self' (both register and lexical).
1 parent 99933fc commit fbfccdf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NQPQ/Actions.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,7 @@ class NQP::Actions is HLL::Actions {
10411041
}
10421042
else {
10431043
my $block := @BLOCK.shift;
1044+
$block[0].push(PAST::Var.new(:name<self>, :scope<parameter>));
10441045
$block[0].push(
10451046
PAST::Var.new(:name<self>, :scope<register>, :isdecl(1),
10461047
:viviself(PAST::Var.new( :name<self>, :scope('lexical_6model') ))));

0 commit comments

Comments
 (0)