From c58f5456e5c5f21193e960cecc434e367ef1281e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 21 Oct 2020 20:58:52 +0200 Subject: 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. --- src/vim9compile.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/vim9compile.c') diff --git a/src/vim9compile.c b/src/vim9compile.c index 934b4d6b1..7ae47b393 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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: -- cgit v1.2.1