mirror of
https://github.com/neovim/neovim.git
synced 2025-11-09 20:15:24 +00:00
vim-patch:8.2.3786: test fails because of using Vim9 syntax in legacy function
Problem: Test fails because of using Vim9 syntax in legacy function.
Solution: Add "call".
4f16e9de98
Add test_nested_function.vim changes from patches 8.{0.0141,2.1432}.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -2024,7 +2024,7 @@ func Test_call()
|
|||||||
let Time = 'localtime'
|
let Time = 'localtime'
|
||||||
call Time()
|
call Time()
|
||||||
END
|
END
|
||||||
CheckScriptFailure(lines, 'E1085:')
|
call CheckScriptFailure(lines, 'E1085:')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_char2nr()
|
func Test_char2nr()
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
"Tests for nested functions
|
" Tests for nested functions
|
||||||
"
|
|
||||||
|
source check.vim
|
||||||
|
|
||||||
func NestedFunc()
|
func NestedFunc()
|
||||||
func! Func1()
|
func! Func1()
|
||||||
let g:text .= 'Func1 '
|
let g:text .= 'Func1 '
|
||||||
@@ -48,6 +50,9 @@ func Recurse(count)
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_max_nesting()
|
func Test_max_nesting()
|
||||||
|
" TODO: why does this fail on Windows? Runs out of stack perhaps?
|
||||||
|
CheckNotMSWindows
|
||||||
|
|
||||||
let call_depth_here = 2
|
let call_depth_here = 2
|
||||||
let ex_depth_here = 5
|
let ex_depth_here = 5
|
||||||
set mfd&
|
set mfd&
|
||||||
@@ -61,3 +66,5 @@ func Test_max_nesting()
|
|||||||
|
|
||||||
set mfd&
|
set mfd&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
|||||||
Reference in New Issue
Block a user