mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1756: Vim9: :let will soon be disallowed
Problem: Vim9: :let will soon be disallowed. Solution: Add v:disallow_let temporarily. Fix tests.
This commit is contained in:
@@ -6979,6 +6979,12 @@ 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
|
||||
case CMD_var:
|
||||
case CMD_final:
|
||||
case CMD_const:
|
||||
|
Reference in New Issue
Block a user