Patch 8.2.4280 (after 8.2.4279)
Problem: list-dict test crashes.
Solution: Check declared type for add().
Files: src/vim9expr.vim
*** ../vim-8.2.4279/src/vim9expr.c 2022-01-30 15:28:26.642295028 +0000
--- src/vim9expr.c 2022-02-01 12:44:14.550051881 +0000
***************
*** 759,765 ****
if (STRCMP(name, "add") == 0 && argcount == 2)
{
! type_T *type = get_type_on_stack(cctx, 1);
// add() can be compiled to instructions if we know the type
if (type->tt_type == VAR_LIST)
--- 759,765 ----
if (STRCMP(name, "add") == 0 && argcount == 2)
{
! type_T *type = get_decl_type_on_stack(cctx, 1);
// add() can be compiled to instructions if we know the type
if (type->tt_type == VAR_LIST)
*** ../vim-8.2.4279/src/version.c 2022-02-01 12:11:53.447041944 +0000
--- src/version.c 2022-02-01 12:46:52.595706360 +0000
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4280,
/**/
--
Scientists decoded the first message from an alien civilization:
SIMPLY SEND 6 TIMES 10 TO THE 50 ATOMS OF HYDROGEN TO THE STAR
SYSTEM AT THE TOP OF THE LIST, CROSS OFF THAT STAR SYSTEM, THEN PUT
YOUR STAR SYSTEM AT THE BOTTOM OF THE LIST AND SEND IT TO 100 OTHER
STAR SYSTEMS. WITHIN ONE TENTH GALACTIC ROTATION YOU WILL RECEIVE
ENOUGH HYDROGREN TO POWER YOUR CIVILIZATION UNTIL ENTROPY REACHES ITS
MAXIMUM! IT REALLY WORKS!
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///