Skip to content

Commit

Permalink
Follow generated param name conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
ab5tract committed Feb 12, 2023
1 parent 27d1d70 commit 93caca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Raku/ast/expressions.rakumod
Expand Up @@ -676,7 +676,7 @@ class RakuAST::ApplyInfix
my $operand := nqp::getattr(self, RakuAST::ApplyInfix, $_);
if nqp::istype($operand, RakuAST::Term::Whatever) {
my $curried := self.IMPL-CURRIED;
my $param_name := '$whatevercode_arg' ~ ($curried ?? $curried.IMPL-NUM-PARAMS + 1 !! 1);
my $param_name := '$whatevercode_arg_' ~ ($curried ?? $curried.IMPL-NUM-PARAMS + 1 !! 1);
my $param;
if $curried {
$param := $curried.IMPL-ADD-PARAM($param_name);
Expand All @@ -696,7 +696,7 @@ class RakuAST::ApplyInfix
my $param-num := $curried.IMPL-NUM-PARAMS;
for $params {
$param-num++;
$_.target.set-name('$whatevercode_arg' ~ $param-num);
$_.target.set-name('$whatevercode_arg_' ~ $param-num);
$curried.IMPL-ADD-PARAM($_.target.lexical-name);
}
}
Expand Down

0 comments on commit 93caca5

Please sign in to comment.