summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-07 02:02:53 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-07 02:02:53 +0900
commit4e2ae3e3760fc38192ac1e1f81211f365664cd7c (patch)
tree87337f78bb828d646f74c03941c74a97232d06f8
parent950fe963ac99b33ccfc9c37ad4649e22467f4591 (diff)
downloadmruby-4e2ae3e3760fc38192ac1e1f81211f365664cd7c.tar.gz
mruby-4e2ae3e3760fc38192ac1e1f81211f365664cd7c.zip
Hash#replace should copy default from original even when the default value of the original is not set
-rw-r--r--mrblib/hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/hash.rb b/mrblib/hash.rb
index e608d2971..9a8bd8a7b 100644
--- a/mrblib/hash.rb
+++ b/mrblib/hash.rb
@@ -154,7 +154,7 @@ class Hash
}
if hash.default_proc
self.default_proc = hash.default_proc
- elsif hash.default
+ else
self.default = hash.default
end
self