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 warning for inherited

method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-13 00:34:11 +00:00
parent 831396217a
commit 63b231cea0
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Sep 13 09:34:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_method.c (rb_add_method_def): no warning for inherited
method.
Sun Sep 13 08:30:30 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
* ext/win32ole/win32ole.c: fix WIN32OLE_TYPELIB.new when the 1st

View file

@ -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);