summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-29 04:37:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-29 04:37:52 +0000
commit1fe57a4b5d4d8673e9841f99b23d1935537a855a (patch)
tree7d76f14c2194e897744000797b80a39171c209c6 /test
parent5e4d04c36e33dc23a06cd6e5b53f5e7bef4394f7 (diff)
* 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')
-rw-r--r--test/ruby/test_class.rb8
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