You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove an example which is a syntax error in Ruby's parser
This code generates a syntax error as follows:
```ruby
❯ ruby -e '[1].each { put _1; [1].each { put _1 } }'
-e: -e:1: syntax error found (SyntaxError)
> 1 | ... _1 } }
| ^~ numbered parameter is already used in outer block
```
When numbered parameters are used in nested blocks, it is not possible to use numbered parameters in multiple different hierarchies.
While it was considered to split these up, we discussed below.
#2014 (comment)
0 commit comments