patch 8.2.1452: Vim9: dead code in to_name_end()
Problem: Vim9: dead code in to_name_end().
Solution: Remove check for lambda and dict, it won't be used.
diff --git a/src/version.c b/src/version.c
index 132af7c..842af41 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1452,
+/**/
1451,
/**/
1450,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index e5dbbef..bdb0f06 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2396,17 +2396,6 @@
if (eval_dict(&p, &rettv, NULL, TRUE) == FAIL)
p = arg;
}
- else if (p == arg && *arg == '{')
- {
- int ret = get_lambda_tv(&p, &rettv, NULL);
-
- // Can be "{x -> ret}()".
- // Can be "{'a': 1}->Func()".
- if (ret == NOTDONE)
- ret = eval_dict(&p, &rettv, NULL, FALSE);
- if (ret != OK)
- p = arg;
- }
return p;
}