From 63b231cea0389dd9c8b9ae471b89ab0c1395d4d4 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 13 Sep 2009 00:34:11 +0000 Subject: * vm_method.c (rb_add_method_def): no warning for inherited method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index f3a0e92eeb..a2558bc6e9 100644 --- a/vm_method.c +++ b/vm_method.c @@ -184,7 +184,8 @@ rb_add_method_def(VALUE klass, ID mid, rb_method_type_t type, rb_method_definiti if (RTEST(ruby_verbose) && old_def->alias_count == 0 && - old_def->type != VM_METHOD_TYPE_UNDEF) { + old_def->type != VM_METHOD_TYPE_UNDEF && + old_def->type != VM_METHOD_TYPE_ZSUPER) { rb_warning("method redefined; discarding old %s", rb_id2name(mid)); } rb_free_method_entry(old_me); -- cgit v1.2.3