mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
5e4d04c36e
commit
1fe57a4b5d
3 changed files with 22 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue