diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-16 18:38:48 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-16 18:38:48 +0900 |
commit | c171ab23e376b6c7f1094a77f137d916b0a403e6 (patch) | |
tree | e6306df59e96d5d70aa4172d19c91e47e5b753a2 /parse.y | |
parent | f38b3e8c707ebdcad05aa9485cf1760640b74fbb (diff) | |
download | ruby-c171ab23e376b6c7f1094a77f137d916b0a403e6.tar.gz |
Separate numbered parameter scope in eval
[Feature #16432]
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12041,7 +12041,7 @@ dvar_defined_ref(struct parser_params *p, ID id, ID **vidrefp) if (used) used = used->prev; } - if (vars == DVARS_INHERIT) { + if (vars == DVARS_INHERIT && !NUMPARAM_ID_P(id)) { return rb_dvar_defined(id, p->parent_iseq); } |