comparison src/testdir/test_vim9_cmd.vim @ 27464:a14c4d3e3260 v8.2.4260

patch 8.2.4260: Vim9: can still use a global function without g: Commit: https://github.com/vim/vim/commit/848faddb870f3ba4d84fcacd1cccb5cdbbfd9c41 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 30 15:28:30 2022 +0000 patch 8.2.4260: Vim9: can still use a global function without g: Problem: Vim9: can still use a global function without g: at the script level. Solution: Also check for g: at the script level. (issue #9637)
author Bram Moolenaar <Bram@vim.org>
date Sun, 30 Jan 2022 16:30:04 +0100
parents 4c16acb2525f
children 3f7e59eac8f4
comparison
equal deleted inserted replaced
27463:c50f682d1183 27464:a14c4d3e3260
1322 1322
1323 set nogdefault 1323 set nogdefault
1324 bwipe! 1324 bwipe!
1325 enddef 1325 enddef
1326 1326
1327 def g:SomeComplFunc(findstart: number, base: string): any 1327 def s:SomeComplFunc(findstart: number, base: string): any
1328 if findstart 1328 if findstart
1329 return 0 1329 return 0
1330 else 1330 else
1331 return ['aaa', 'bbb'] 1331 return ['aaa', 'bbb']
1332 endif 1332 endif