mirror of
https://github.com/ruby/ruby.git
synced 2025-09-24 04:54:01 +02:00
* vm_method.c (rb_add_method_def): no redefinition warning on
undef. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74926fefb7
commit
9603cd2f62
4 changed files with 23 additions and 1 deletions
|
@ -845,5 +845,13 @@ class TestModule < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
assert_equal("", stderr, '[ruby-dev:39397]')
|
||||
|
||||
stderr = EnvUtil.verbose_warning do
|
||||
Module.new do
|
||||
def foo; end
|
||||
undef foo
|
||||
end
|
||||
end
|
||||
assert_equal("", stderr)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue