patch 8.2.3899: Vim9: test for map() on string fails
Problem: Vim9: test for map() on string fails.
Solution: Expect string return type.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 03d6459..8057408 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -517,8 +517,9 @@
if (context->arg_types[0]->tt_type == VAR_LIST
|| context->arg_types[0]->tt_type == VAR_DICT)
expected = context->arg_types[0]->tt_member;
- else if (context->arg_types[0]->tt_type == VAR_STRING
- || context->arg_types[0]->tt_type == VAR_BLOB)
+ else if (context->arg_types[0]->tt_type == VAR_STRING)
+ expected = &t_string;
+ else if (context->arg_types[0]->tt_type == VAR_BLOB)
expected = &t_number;
if (expected != NULL)
{
diff --git a/src/version.c b/src/version.c
index e41dcb1..260182b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -750,6 +750,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3899,
+/**/
3898,
/**/
3897,