Module#alias_method should return self in ISO standard

This commit is contained in:
KOBAYASHI Shuji
2019-04-05 19:03:46 +09:00
parent f882b6908e
commit 623e15936a
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1843,7 +1843,7 @@ mrb_mod_alias(mrb_state *mrb, mrb_value mod)
mrb_get_args(mrb, "nn", &new_name, &old_name);
mrb_alias_method(mrb, c, new_name, old_name);
return mrb_nil_value();
return mod;
}
void