# HG changeset patch # User Bram Moolenaar # Date 1643720404 -3600 # Node ID 29104ffb4dca696fcbfca15d2718364d96d1741a # Parent 93bc77ed725f33fafa824104216261955cc7720d patch 8.2.4280: list-dict test crashes Commit: https://github.com/vim/vim/commit/eb4a9ba293be51039e57e0e18337785e2ce526e7 Author: Bram Moolenaar Date: Tue Feb 1 12:47:07 2022 +0000 patch 8.2.4280: list-dict test crashes Problem: list-dict test crashes. Solution: Check declared type for add(). diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4280, +/**/ 4279, /**/ 4278, diff --git a/src/vim9expr.c b/src/vim9expr.c --- a/src/vim9expr.c +++ b/src/vim9expr.c @@ -759,7 +759,7 @@ compile_call( if (STRCMP(name, "add") == 0 && argcount == 2) { - type_T *type = get_type_on_stack(cctx, 1); + 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)