From 7211354a565892ae77bfdac90142a596f3661ca7 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 Oct 2009 12:19:19 +0000 Subject: * vm_method.c (rb_add_method_def): no redefinition warning on undef. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index a879d0567..ec381c40d 100644 --- a/vm_method.c +++ b/vm_method.c @@ -185,6 +185,7 @@ rb_add_method_def(VALUE klass, ID mid, rb_method_type_t type, rb_method_definiti rb_vm_check_redefinition_opt_method(old_me); if (RTEST(ruby_verbose) && + type != VM_METHOD_TYPE_UNDEF && old_def->alias_count == 0 && old_def->type != VM_METHOD_TYPE_UNDEF && old_def->type != VM_METHOD_TYPE_ZSUPER) { -- cgit