diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2025-09-17 19:06:55 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-09-19 16:55:01 +0000 |
| commit | 71067aa54c9fd819313dd2d35cb5b32803a65ad4 (patch) | |
| tree | 47e82cefc013297ae1d231a566b602de633957ef /test/prism/ruby/ruby_parser_test.rb | |
| parent | d7ad44613723201a4c218aabae5baa7585a9867e (diff) | |
[ruby/prism] Reject argument command call taking a block with more trailing arguments
https://bugs.ruby-lang.org/issues/21168#note-5
The added code samples align with `parse.y`, except for `foo(bar baz do end)` which `parse.y` currently rejects but shouldn't.
https://github.com/ruby/prism/commit/3a4e102d80
Diffstat (limited to 'test/prism/ruby/ruby_parser_test.rb')
| -rw-r--r-- | test/prism/ruby/ruby_parser_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/prism/ruby/ruby_parser_test.rb b/test/prism/ruby/ruby_parser_test.rb index b21ad81391..ec55e41967 100644 --- a/test/prism/ruby/ruby_parser_test.rb +++ b/test/prism/ruby/ruby_parser_test.rb @@ -79,6 +79,9 @@ module Prism # Ruby >= 3.5 specific syntax "endless_methods_command_call.txt", + + # https://bugs.ruby-lang.org/issues/21168#note-5 + "command_method_call_2.txt", ] Fixture.each(except: failures) do |fixture| |
