Skip to content

Commit

Permalink
make _ by itself emit a deprecation warning
Browse files Browse the repository at this point in the history
missing case in #20328
  • Loading branch information
StefanKarpinski committed Feb 8, 2017
1 parent 1b7a684 commit d1785c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ static jl_value_t *do_invoke(jl_value_t **args, size_t nargs, interpreter_state

jl_value_t *jl_eval_global_var(jl_module_t *m, jl_sym_t *e)
{
if (e == underscore_sym)
jl_depwarn("deprecated syntax \"_ as an rvalue\".", (jl_value_t*)jl_symbol("eval"));
jl_value_t *v = jl_get_global(m, e);
if (v == NULL)
jl_undefined_var_error(e);
Expand Down

0 comments on commit d1785c2

Please sign in to comment.