summaryrefslogtreecommitdiff
path: root/src/vim9expr.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-01 12:47:07 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-01 12:47:07 +0000
commiteb4a9ba293be51039e57e0e18337785e2ce526e7 (patch)
tree740872773f1136617adc26abbe640b62c9a2fecd /src/vim9expr.c
parent8133018f50bc447570825801e93d5ed67e8dac90 (diff)
downloadvim-git-eb4a9ba293be51039e57e0e18337785e2ce526e7.tar.gz
patch 8.2.4280: list-dict test crashesv8.2.4280
Problem: list-dict test crashes. Solution: Check declared type for add().
Diffstat (limited to 'src/vim9expr.c')
-rw-r--r--src/vim9expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9expr.c b/src/vim9expr.c
index 6affac22e..d36df84e0 100644
--- 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)