Commit 942b885a
942b885a7b82Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 4 files · +2 added · ~2 modified
Description
Merge pull request #948 from ryanseys/rs-hash-delete-return
analyze,codegen: Hash#delete returns the deleted value
Details
- Commit
- 942b885a7b82
- Parent
- 6f5dca2c8273
- Merge parent
- 39e260af01b3
spinel_analyze.rbmodifiedView file
@@ -4765,6 +4765,15 @@
47654765
if rt == "string"47664766
return "string"47674767
end4768+
if rt == "sym_int_hash" || rt == "str_int_hash"4769+
return "int"4770+
end4771+
if rt == "sym_str_hash" || rt == "str_str_hash" || rt == "int_str_hash"4772+
return "string"4773+
end4774+
if rt == "sym_poly_hash" || rt == "str_poly_hash" || rt == "poly_poly_hash"4775+
return "poly"4776+
end47684777
end47694778
end47704779
if mname == "squeeze"spinel_codegen.rbmodifiedView file
Loading diff…
test/hash_delete_returns_value.rbaddedView file
Loading diff…
test/hash_delete_returns_value.rb.expectedaddedView file
Loading diff…