summaryrefslogtreecommitdiff
path: root/test/prism/ruby
diff options
context:
space:
mode:
authorEarlopain <14981592+Earlopain@users.noreply.github.com>2025-01-05 13:54:38 +0100
committerKevin Newton <kddnewton@gmail.com>2025-01-11 19:09:05 -0500
commitd1a70014f9a1ee411c41338d0929443bab004cda (patch)
tree7b18105f3d20fd93e97596b0aae5fbd7b660ec2c /test/prism/ruby
parent7cbaa3b9298b4ab5027d75a7317ca43a9e745c16 (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