зеркало из https://github.com/github/ruby.git
* eval.c (rb_method_missing): avoid an warning "too many arguments
for format string" on "./ruby -ve 'def m() super end; m'". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ccbdd90865
Коммит
a03d4a0635
|
@ -1,3 +1,8 @@
|
|||
Sun Jun 17 11:11:07 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* eval.c (rb_method_missing): avoid an warning "too many arguments
|
||||
for format string" on "./ruby -ve 'def m() super end; m'".
|
||||
|
||||
Sat Jun 16 22:24:17 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* gc.c (garbage_collect): re-introduce ruby_current_node marking code.
|
||||
|
|
2
eval.c
2
eval.c
|
@ -1303,7 +1303,7 @@ rb_method_missing(int argc, const VALUE *argv, VALUE obj)
|
|||
exc = rb_eNameError;
|
||||
}
|
||||
else if (last_call_status & NOEX_SUPER) {
|
||||
format = "super: no superclass method `%s'";
|
||||
format = "super: no superclass method `%s' for %s";
|
||||
}
|
||||
if (!format) {
|
||||
format = "undefined method `%s' for %s";
|
||||
|
|
Загрузка…
Ссылка в новой задаче