<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/prism/errors/double_scope_repeated_numbered_parameters.txt, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/prism] Same numbered param cannot be used in child blocks</title>
<updated>2024-12-12T00:42:27+00:00</updated>
<author>
<name>Aaron Patterson</name>
<email>tenderlove@ruby-lang.org</email>
</author>
<published>2024-12-12T00:29:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0a1fa994820c3373c538376fcee82565135c7e77'/>
<id>0a1fa994820c3373c538376fcee82565135c7e77</id>
<content type='text'>
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
-&gt; { _1 + -&gt; { _1 } }
```

Fixes https://github.com/ruby/prism/pull/3291

https://github.com/ruby/prism/commit/d4fc441838
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
-&gt; { _1 + -&gt; { _1 } }
```

Fixes https://github.com/ruby/prism/pull/3291

https://github.com/ruby/prism/commit/d4fc441838
</pre>
</div>
</content>
</entry>
</feed>
