aboutsummaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-01 10:26:05 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-01 10:26:05 +0000
commit8c48bbe191b824ff6368b2d87028d9b1aa20ba8f (patch)
treedc51f7b9908ad461c94fdded4716be20685c33df /vm_method.c
parentbf39e73d794bebe88d67323b291196c4fcfad41a (diff)
downloadruby-8c48bbe191b824ff6368b2d87028d9b1aa20ba8f.tar.gz
* vm_method.c (rb_method_entry_make): do not show warning message
when method_entry is an alias. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50715 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 11131fc807..02e46f3b84 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -324,7 +324,8 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type,
type != VM_METHOD_TYPE_UNDEF &&
old_def->alias_count == 0 &&
old_def->type != VM_METHOD_TYPE_UNDEF &&
- old_def->type != VM_METHOD_TYPE_ZSUPER) {
+ old_def->type != VM_METHOD_TYPE_ZSUPER &&
+ old_def->type != VM_METHOD_TYPE_ALIAS) {
const rb_iseq_t *iseq = 0;
rb_warning("method redefined; discarding old %"PRIsVALUE, rb_id2str(mid));