diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-08 15:46:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-08 15:46:01 +0200 |
commit | 98b4f145eb89405021e23a4a37db51d60a75a1d0 (patch) | |
tree | 5d359da0f267a784d3f419e61c36aa47f36d4b2f /src/dict.c | |
parent | 2dd0a2c39a3b3fbffc94d0676e472c78d02ebdbd (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/dict.c')
-rw-r--r-- | src/dict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dict.c b/src/dict.c index ad482cddd5..b381d476dc 100644 --- a/src/dict.c +++ b/src/dict.c @@ -966,7 +966,7 @@ dict_extend(dict_T *d1, dict_T *d2, char_u *action) // Check the key to be valid when adding to any scope. if (d1->dv_scope == VAR_DEF_SCOPE && HI2DI(hi2)->di_tv.v_type == VAR_FUNC - && var_check_func_name(hi2->hi_key, di1 == NULL)) + && var_wrong_func_name(hi2->hi_key, di1 == NULL)) break; if (!valid_varname(hi2->hi_key)) break; |