comparison 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
comparison
equal deleted inserted replaced
22666:7d3426b50a43 22667:87987c783087
7317 line = compile_return(p, set_return_type, &cctx); 7317 line = compile_return(p, set_return_type, &cctx);
7318 cctx.ctx_had_return = TRUE; 7318 cctx.ctx_had_return = TRUE;
7319 break; 7319 break;
7320 7320
7321 case CMD_let: 7321 case CMD_let:
7322 if (get_vim_var_nr(VV_DISALLOW_LET)) 7322 emsg(_(e_cannot_use_let_in_vim9_script));
7323 { 7323 break;
7324 emsg(_(e_cannot_use_let_in_vim9_script));
7325 break;
7326 }
7327 // FALLTHROUGH
7328 case CMD_var: 7324 case CMD_var:
7329 case CMD_final: 7325 case CMD_final:
7330 case CMD_const: 7326 case CMD_const:
7331 line = compile_assignment(p, &ea, ea.cmdidx, &cctx); 7327 line = compile_assignment(p, &ea, ea.cmdidx, &cctx);
7332 if (line == p) 7328 if (line == p)