Mercurial > vim
comparison src/testdir/test_vim9_import.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 | 55613f0d59bc |
comparison
equal
deleted
inserted
replaced
27463:c50f682d1183 | 27464:a14c4d3e3260 |
---|---|
2016 assert_fails('source Xdir/autoload/loadme.vim', 'E129:') | 2016 assert_fails('source Xdir/autoload/loadme.vim', 'E129:') |
2017 | 2017 |
2018 delete('Xdir', 'rf') | 2018 delete('Xdir', 'rf') |
2019 enddef | 2019 enddef |
2020 | 2020 |
2021 def Test_autoload_name_wring() | 2021 def Test_autoload_name_wrong() |
2022 var lines =<< trim END | 2022 var lines =<< trim END |
2023 vim9script | 2023 vim9script |
2024 def Xscriptname#Func() | 2024 def Xscriptname#Func() |
2025 enddef | 2025 enddef |
2026 END | 2026 END |