diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-29 04:37:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-29 04:37:52 +0000 |
commit | 404dbea3d6a84853f434be53325b28146bc010ec (patch) | |
tree | 7d76f14c2194e897744000797b80a39171c209c6 /test/ruby/test_class.rb | |
parent | 3f125d6b460624dd3edace4ee79ba65c38a43c7c (diff) | |
download | ruby-404dbea3d6a84853f434be53325b28146bc010ec.tar.gz ruby-404dbea3d6a84853f434be53325b28146bc010ec.tar.xz ruby-404dbea3d6a84853f434be53325b28146bc010ec.zip |
* vm_method.c (rb_add_method_def): nothing to do if old method had
same definition. [ruby-dev:39397]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r-- | test/ruby/test_class.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb index 8d618822a..382dbb9cc 100644 --- a/test/ruby/test_class.rb +++ b/test/ruby/test_class.rb @@ -130,6 +130,14 @@ class TestClass < Test::Unit::TestCase end end assert_equal("", stderr) + stderr = verbose_warning do + Module.new do + module_function + def foo; end + module_function :foo + end + end + assert_equal("", stderr, '[ruby-dev:39397]') end def test_check_inheritable |