From cbfb5fbb25a8b73127f69f47940c8d380270e6af Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 26 Apr 2023 18:06:16 -0700 Subject: RJIT: Fix unspecified_bits with locals --- bootstraptest/test_rjit.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_rjit.rb b/bootstraptest/test_rjit.rb index a8a1524fe2..464af7a6e6 100644 --- a/bootstraptest/test_rjit.rb +++ b/bootstraptest/test_rjit.rb @@ -28,3 +28,17 @@ assert_equal 'bar', %q{ bar(Struct.new(:bar).new(:bar)) } + +# kwargs default w/ checkkeyword + locals (which shouldn't overwrite unspecified_bits) +assert_equal '1', %q{ + def foo(bar: 1.to_s) + _ = 1 + bar + end + + def entry + foo + end + + entry +} -- cgit v1.2.1