Skip to content

Commit

Permalink
RakuAST: fix variable $_ not resolved on parameters with where blocks
Browse files Browse the repository at this point in the history
When PERFORM-BEGIN is called implicitly via IMPL-CHECK, it's not
sufficient to ensure the newly generated nodes begin is performed as at
that point resolution of names has already been performed. Intead we
need to run the full IMPL-CHECK routine.
  • Loading branch information
niner committed Jan 7, 2023
1 parent dcff39f commit 5758c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Raku/ast/signature.rakumod
Expand Up @@ -564,7 +564,7 @@ class RakuAST::Parameter is RakuAST::Meta is RakuAST::Attaching
),
),
);
$block.ensure-begin-performed($resolver, $context);
$block.IMPL-CHECK($resolver, $context, False);
nqp::bindattr(self, RakuAST::Parameter, '$!where', $block);
}
}
Expand Down

0 comments on commit 5758c35

Please sign in to comment.