1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: make a warning for __FILE__ in eval by default

[Bug #4352]
This commit is contained in:
Yusuke Endoh 2019-08-02 23:16:02 +09:00
parent 247b06d400
commit e9e17cbc05

View file

@ -9741,7 +9741,7 @@ past_dvar_p(struct parser_params *p, ID id)
#define WARN_LOCATION(type) do { \
if (p->warn_location) { \
rb_warning0(type" in eval may not return location in binding;" \
rb_warn0(type" in eval may not return location in binding;" \
" use Binding#source_location instead"); \
} \
} while (0)