From 5825d7d4a1a53ba84909a01679f4dfab63fa9739 Mon Sep 17 00:00:00 2001 From: Jimmy Miller Date: Thu, 16 Mar 2023 17:40:36 -0400 Subject: YJIT: Remove exit for rest and send combo (#7546) --- bootstraptest/test_yjit.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index d7dd0cd460..8902cd6cde 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -3654,3 +3654,11 @@ assert_equal "[]", %q{ test(custom) EMPTY } + +# Rest with send +assert_equal '[1, 2, 3]', %q{ + def bar(x, *rest) + rest.insert(0, x) + end + send(:bar, 1, 2, 3) +} -- cgit v1.2.1