Mercurial > vim
changeset 21650:79a8d723a3d2 v8.2.1375
patch 8.2.1375: Vim9: method name with digit not accepted
Commit: https://github.com/vim/vim/commit/c5da1fb7ea4126b6c70426cf0add51e720b7cd3f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 5 15:43:44 2020 +0200
patch 8.2.1375: Vim9: method name with digit not accepted
Problem: Vim9: method name with digit not accepted.
Solution: Use eval_isnamec() instead of eval_isnamec1(). (closes https://github.com/vim/vim/issues/6613)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Aug 2020 15:45:04 +0200 |
parents | cd7f9936b198 |
children | 0993a0c9af26 |
files | src/testdir/test_vim9_expr.vim src/version.c src/vim9compile.c |
diffstat | 3 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -1674,14 +1674,14 @@ def Echo(arg: any): string return arg enddef -def s:EchoArg(arg: any): string +def s:Echo4Arg(arg: any): string return arg enddef def Test_expr7_call() assert_equal('yes', 'yes'->Echo()) assert_equal('yes', 'yes' - ->s:EchoArg()) + ->s:Echo4Arg()) assert_equal(1, !range(5)->empty()) assert_equal([0, 1, 2], --3->range())