diff src/vim9compile.c @ 22667:87987c783087 v8.2.1882

patch 8.2.1882: Vim9: v:disallow_let is no longer needed Commit: https://github.com/vim/vim/commit/c58f5456e5c5f21193e960cecc434e367ef1281e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 21 20:58:52 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Oct 2020 21:00:04 +0200
parents 0f90c15a4a28
children ad54acb1bf2c
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -7319,12 +7319,8 @@ compile_def_function(ufunc_T *ufunc, int
 		    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: