Skip to content

Conversation

@tenderlove
Copy link
Member

Raise an exception when the same numbered param is used inside a child block. For example, the following code should be a syntax error:

-> { _1 + -> { _1 } }

Fixes #3291

Raise an exception when the same numbered param is used inside a child
block.  For example, the following code should be a syntax error:

```ruby
-> { _1 + -> { _1 } }
```

Fixes #3291
@tenderlove tenderlove requested a review from kddnewton December 12, 2024 00:32
@tenderlove tenderlove merged commit fbad866 into ruby:main Dec 12, 2024
55 checks passed
@tenderlove tenderlove deleted the numbered-param branch December 12, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested numbered parameter should cause SyntaxError

2 participants