1
0
forked from aniani/vim

patch 8.2.1882: Vim9: v:disallow_let is no longer needed

Problem:    Vim9: v:disallow_let is no longer needed.
Solution:   Remove v:disallow_let.
This commit is contained in:
Bram Moolenaar
2020-10-21 20:58:52 +02:00
parent 692d1a51e7
commit c58f5456e5
4 changed files with 6 additions and 14 deletions

View File

@@ -7319,12 +7319,8 @@ compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx)
break;
case CMD_let:
if (get_vim_var_nr(VV_DISALLOW_LET))
{
emsg(_(e_cannot_use_let_in_vim9_script));
break;
}
// FALLTHROUGH
emsg(_(e_cannot_use_let_in_vim9_script));
break;
case CMD_var:
case CMD_final:
case CMD_const: