зеркало из https://github.com/github/ruby.git
* eval_method.ci (rb_add_method): no redefinition warning for undef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9417595993
Коммит
9cef6acdc7
|
@ -1,3 +1,7 @@
|
|||
Mon Nov 19 02:31:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval_method.ci (rb_add_method): no redefinition warning for undef.
|
||||
|
||||
Mon Nov 19 01:53:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (parser_read_escape): disallow control and meta modifiers
|
||||
|
|
|
@ -149,7 +149,7 @@ rb_add_method(VALUE klass, ID mid, NODE * node, int noex)
|
|||
if (nd_type(old_node->nd_body->nd_body) == NODE_CFUNC) {
|
||||
rb_vm_check_redefinition_opt_method(old_node);
|
||||
}
|
||||
if (RTEST(ruby_verbose) && old_node->nd_cnt == 0 && old_node->nd_body) {
|
||||
if (RTEST(ruby_verbose) && node && old_node->nd_cnt == 0 && old_node->nd_body) {
|
||||
rb_warning("method redefined; discarding old %s", rb_id2name(mid));
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче