diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-23 20:09:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-23 20:09:10 +0200 |
commit | bfba8651a51b66fdc52848f32c77aa925586e250 (patch) | |
tree | 133adb26773b341ecd479f56b1940ea587d00765 /src/testdir | |
parent | 637cd7d1c9fa0ee47951ccdc310a388cb7ecfada (diff) |
patch 8.2.1284: Vim9: skipping over type includes following white spacev8.2.1284
Problem: Vim9: skipping over type includes following white space, leading
to an error for missing white space.
Solution: Do not skip over white space after the type.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_vim9_func.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim index 25c40c8b98..c8c6afee09 100644 --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -283,6 +283,16 @@ def Test_call_funcref() assert_equal(123, Bar(Funcref)) END CheckScriptSuccess(lines) + + lines =<< trim END + vim9script + def UseNumber(nr: number) + echo nr + enddef + let Funcref: func(number) = function('UseNumber') + Funcref(123) + END + CheckScriptSuccess(lines) enddef let SomeFunc = function('len') |