summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-21 20:58:52 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-21 20:58:52 +0200
commitc58f5456e5c5f21193e960cecc434e367ef1281e (patch)
tree11a22b0c4a38b1e5c63472d1935232eb12bffb2b /src/vim9compile.c
parent692d1a51e74fea2db3c7e9ae7c7c6c3a1a1945ee (diff)
downloadvim-git-8.2.1882.tar.gz
patch 8.2.1882: Vim9: v:disallow_let is no longer neededv8.2.1882
Problem: Vim9: v:disallow_let is no longer needed. Solution: Remove v:disallow_let.
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c8
1 files changed, 2 insertions, 6 deletions
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: