summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-08 15:46:01 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-08 15:46:01 +0200
commit98b4f145eb89405021e23a4a37db51d60a75a1d0 (patch)
tree5d359da0f267a784d3f419e61c36aa47f36d4b2f /src/eval.c
parent2dd0a2c39a3b3fbffc94d0676e472c78d02ebdbd (diff)
patch 8.2.1395: Vim9: no error if declaring a funcref with lower case letterv8.2.1395
Problem: Vim9: no error if declaring a funcref with a lower case letter. Solution: Check the name after the type is inferred. Fix confusing name.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index c695468cdf..b1fad1dcd5 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1007,7 +1007,7 @@ get_lval(
prevval = 0; // avoid compiler warning
wrong = (lp->ll_dict->dv_scope == VAR_DEF_SCOPE
&& rettv->v_type == VAR_FUNC
- && var_check_func_name(key, lp->ll_di == NULL))
+ && var_wrong_func_name(key, lp->ll_di == NULL))
|| !valid_varname(key);
if (len != -1)
key[len] = prevval;