diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-26 18:06:16 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-26 18:12:53 -0700 |
commit | cbfb5fbb25a8b73127f69f47940c8d380270e6af (patch) | |
tree | c307f941db798c13810ea703951368612b9a08da /bootstraptest | |
parent | 12070005d46c23c47763a20d871d9de76a8022b3 (diff) |
RJIT: Fix unspecified_bits with locals
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_rjit.rb | 14 |
1 files changed, 14 insertions, 0 deletions
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 +} |