diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2025-01-05 13:54:38 +0100 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2025-01-11 19:09:05 -0500 |
| commit | d1a70014f9a1ee411c41338d0929443bab004cda (patch) | |
| tree | 7b18105f3d20fd93e97596b0aae5fbd7b660ec2c /test/prism/ruby | |
| parent | 7cbaa3b9298b4ab5027d75a7317ca43a9e745c16 (diff) | |
[ruby/prism] Fix parser translator ast when using anonymous forwarding in blocks/lambda
Blocks and lambdas inherit anonymous arguments from the method they are a part of.
They themselves don't allow to introduce new anonymous arguments.
While you can write this:
```rb
def foo(*)
bar { |**| }
end
```
referecing the new parameter inside of the block will always be a syntax error.
https://github.com/ruby/prism/commit/2cbd27e134
Diffstat (limited to 'test/prism/ruby')
0 files changed, 0 insertions, 0 deletions
