summaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-13 00:34:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-13 00:34:11 +0000
commit9dcf24f347012b9517880c5ebe2e375fb4d75603 (patch)
tree6fe27d1875503c54bd61935ebb887bf93e99d926 /vm_method.c
parent24e071999b8c852a3ea5a9e078e3a7069dc535aa (diff)
downloadruby-9dcf24f347012b9517880c5ebe2e375fb4d75603.tar.gz
ruby-9dcf24f347012b9517880c5ebe2e375fb4d75603.tar.xz
ruby-9dcf24f347012b9517880c5ebe2e375fb4d75603.zip
* vm_method.c (rb_add_method_def): no warning for inherited
method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index f3a0e92ee..a2558bc6e 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);