diff options
| author | Aaron Patterson <tenderlove@ruby-lang.org> | 2024-01-23 13:55:46 -0800 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-24 12:04:44 -0800 |
| commit | 94f3f9502c4b0a87392f85672cbc01c7167207d5 (patch) | |
| tree | 04305292a8f02b39424296cc8eec9b226187b576 /test/ruby | |
| parent | 1817af507466ace78f4bc02d77e1f16c70e3a087 (diff) | |
Fix repeated block param
Co-Authored-By: Matt Valentine-House <matt@eightbitraptor.com>
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index d122969cd3..7542f0e220 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -1545,6 +1545,10 @@ a CODE end + def test_repeated_block_underscore + assert_prism_eval("def self.m(_, **_, &_); _; end; method(:m).parameters") + end + def test_repeated_kw_rest_underscore assert_prism_eval("def self.m(_, **_); _; end; method(:m).parameters") end |
