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 { \ #define WARN_LOCATION(type) do { \
if (p->warn_location) { \ 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"); \ " use Binding#source_location instead"); \
} \ } \
} while (0) } while (0)