summaryrefslogtreecommitdiff
path: root/test/ruby/test_object.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-23 10:13:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-23 10:13:29 +0000
commit8dc89b34c16373e67e2dad5ed6c1aea5aa48bf82 (patch)
tree30244ab99099b9f63d37a13a6a3e2feb54954336 /test/ruby/test_object.rb
parent93647e81a6d46c2e3f52618521a5b78b61e686d5 (diff)
vm_method.c: no redefinition warnings for undefined methods
* vm_method.c (rb_method_entry_make): warn redefinition only for already defined methods, but not for undefined methods. [ruby-dev:48691] [Bug #10421] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r--test/ruby/test_object.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index 2af8f04d5b..c3e355162f 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -318,6 +318,12 @@ class TestObject < Test::Unit::TestCase
$VERBOSE = false
def (Object.new).__send__; end
INPUT
+
+ bug10421 = '[ruby-dev:48691] [Bug #10421]'
+ assert_in_out_err([], <<-INPUT, [], [], bug10421)
+ $VERBOSE = false
+ def (BasicObject.new).object_id; end
+ INPUT
end
def test_remove_method