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 | 1fe57a4b5d4d8673e9841f99b23d1935537a855a (patch) | |
tree | 7d76f14c2194e897744000797b80a39171c209c6 /test/ruby | |
parent | 5e4d04c36e33dc23a06cd6e5b53f5e7bef4394f7 (diff) | |
download | ruby-1fe57a4b5d4d8673e9841f99b23d1935537a855a.tar.gz |
* vm_method.c (rb_add_method_def): nothing to do if old method had
same definition. [ruby-dev:39397]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 8d618822a5..382dbb9cc3 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 |