diff options
| -rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12788,7 +12788,7 @@ gettable(struct parser_params *p, ID id, const YYLTYPE *loc) if (dyna_in_block(p) && id == rb_intern("it") && !(DVARS_TERMINAL_P(p->lvtbl->args) || DVARS_TERMINAL_P(p->lvtbl->args->prev)) && p->max_numparam != ORDINAL_PARAM) { - rb_warn0("`it` calls without arguments will refer to the first block param in Ruby 3.4; use it() or self.it"); + rb_warn_deprecated("calling `it` without arguments in a block", "it() or self.it"); } return NEW_VCALL(id, loc); case ID_GLOBAL: |
