From 8b7e78f156fb566b47ea3ff7701e18486b0e2dac Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 23 Jan 2024 13:33:31 -0800 Subject: Fix local table size and index for required post underscore Co-Authored-By: Matt Valentine-House --- test/ruby/test_compile_prism.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 7f4cf49bb4..e9bf819ea6 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_required_post_underscore + assert_prism_eval("def self.m(_, _, *_, _); _; end; method(:m).parameters") + end + def test_repeated_splat_underscore assert_prism_eval("def self.m(_, _, _ = 1, _ = 2, *_); end; method(:m).parameters") end -- cgit v1.2.3