Hash#replace should copy default from original even when the default value of...

Hash#replace should copy default from original even when the default value of the original is not set
parent 950fe963
...@@ -154,7 +154,7 @@ class Hash ...@@ -154,7 +154,7 @@ class Hash
} }
if hash.default_proc if hash.default_proc
self.default_proc = hash.default_proc self.default_proc = hash.default_proc
elsif hash.default else
self.default = hash.default self.default = hash.default
end end
self self
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment