1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05: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:
nobu 2009-10-03 12:19:19 +00:00
parent 74926fefb7
commit 9603cd2f62
4 changed files with 23 additions and 1 deletions

View file

@ -150,7 +150,15 @@ class TestClass < Test::Unit::TestCase
Class.new do
define_method(:foo) do end
alias bar foo
alias barf oo
alias bar foo
end
end
assert_equal("", stderr)
stderr = EnvUtil.verbose_warning do
Class.new do
def foo; end
undef foo
end
end
assert_equal("", stderr)