def Aaa() var a = 3 if a == 2 else elseif true else endif enddef
def Aaa() if true else else endif enddef
Note:
This issue is reported by @todashuta at vim-jp/issue vim-jp/issues#1455 (Note: Japanese lang.)
https://github.com/vim/vim/pull/19263
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@yegappan commented on this pull request.
In src/testdir/test_vim9_script.vim:
> @@ -1995,6 +1995,25 @@ def Test_if_elseif_else_fails() END v9.CheckDefFailure(lines, 'E488:') + + lines =<< trim END + if true + else + else + endif + END + v9.CheckDefFailure(lines, 'E583:')
Can you use CheckSourceDefFailure() instead of CheckDefFailure()? The former sources the script from a temporary buffer while the later sources from a temporary file. This makes a difference in the total time it takes to execute all the tests.
In src/testdir/test_vim9_script.vim:
> + if true + else + else + endif + END + v9.CheckDefFailure(lines, 'E583:') + + lines =<< trim END + var a = 3 + if a == 2 + else + elseif true + else + endif + END + v9.CheckDefFailure(lines, 'E584:')
Can you use CheckSourceDefFailure() instead of CheckDefFailure()?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()