diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c index 1bc499f1b5..c88167434b 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1552,6 +1552,7 @@ set_method_visibility(VALUE self, int argc, const VALUE *argv, rb_method_visibil { int i; + rb_check_frozen(self); if (argc == 0) { rb_warning("%"PRIsVALUE" with no argument is just ignored", QUOTE_ID(rb_frame_callee())); |