summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-18 12:59:01 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-18 12:59:01 +0900
commite042e8460bb9a63c05f938d51e8c7c5345a6f3a4 (patch)
treef74530898a7856b3be6f22b4a74284ec11c7d269 /vm_method.c
parent66090b9d10cdaed917b525225e59d1c19e399248 (diff)
Added missing tests for public, private, protected and alias_method
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 e2c5bfb064..f0f6580270 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -2004,7 +2004,8 @@ set_method_visibility(VALUE self, int argc, const VALUE *argv, rb_method_visibil
for (j = 0; j < RARRAY_LEN(v); j++) {
check_and_export_method(self, RARRAY_AREF(v, j), visi);
}
- } else {
+ }
+ else {
for (i = 0; i < argc; i++) {
check_and_export_method(self, argv[i], visi);
}