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 -- b...@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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202012082054.0B8Ks4xf1738916%40masaka.moolenaar.net.

Raspunde prin e-mail lui