To: vim_dev@googlegroups.com Subject: Patch 8.2.2114 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2114 Problem: Vim9: unreachable code in assignment. Solution: Remove impossible condition and code. Files: src/vim9compile.c *** ../vim-8.2.2113/src/vim9compile.c 2020-12-07 21:49:48.416837683 +0100 --- src/vim9compile.c 2020-12-08 21:51:57.054183439 +0100 *************** *** 5483,5498 **** } } } - else if (name[1] == ':' && name[2] != NUL) - { - semsg(_(e_cannot_use_namespaced_variable), name); - goto theend; - } - else if (!is_decl) - { - semsg(_(e_unknown_variable_str), name); - goto theend; - } else if (check_defined(var_start, varlen, cctx) == FAIL) goto theend; } --- 5483,5488 ---- *** ../vim-8.2.2113/src/version.c 2020-12-08 21:12:37.059815292 +0100 --- src/version.c 2020-12-08 21:52:27.957970186 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2114, /**/ -- It is illegal to rob a bank and then shoot at the bank teller with a water pistol. [real standing law in Louisana, United States of America] /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///