diff src/testdir/test_vim9_func.vim @ 21467:49072a858baf v8.2.1284

patch 8.2.1284: Vim9: skipping over type includes following white space Commit: https://github.com/vim/vim/commit/bfba8651a51b66fdc52848f32c77aa925586e250 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 23 20:09:10 2020 +0200 patch 8.2.1284: Vim9: skipping over type includes following white space 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jul 2020 20:15:04 +0200
parents 7f36d36f7195
children 4d156aead799
line wrap: on
line diff
--- 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')