зеркало из https://github.com/github/ruby.git
* vm_method.c (rb_mod_modfunc): method undefined in included module
may not have nd_body. [ruby-core:18738] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c3986f2805
Коммит
4c88510849
|
@ -1,3 +1,8 @@
|
|||
Sun Oct 5 23:06:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_method.c (rb_mod_modfunc): method undefined in included module
|
||||
may not have nd_body. [ruby-core:18738]
|
||||
|
||||
Sun Oct 5 21:28:58 2008 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* lib/rational.rb: resolved conflicts of aliases.
|
||||
|
|
|
@ -1030,7 +1030,7 @@ rb_mod_modfunc(int argc, VALUE *argv, VALUE module)
|
|||
fbody = search_method(rb_cObject, id, &m);
|
||||
}
|
||||
if (fbody == 0 || fbody->nd_body == 0) {
|
||||
rb_bug("undefined method `%s'; can't happen", rb_id2name(id));
|
||||
rb_print_undef(module, id, 0);
|
||||
}
|
||||
if (nd_type(fbody->nd_body->nd_body) != NODE_ZSUPER) {
|
||||
break; /* normal case: need not to follow 'super' link */
|
||||
|
|
Загрузка…
Ссылка в новой задаче