Mercurial > vim
diff src/testdir/vim9.vim @ 34864:3f9d9ee5cb7c v9.1.0299
patch 9.1.0299: Vim9: return type not set for a lambda assigned to script var
Commit: https://github.com/vim/vim/commit/7f5202143b2c84ec12e709272d90dd79621d14ca
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Wed Apr 10 17:18:19 2024 +0200
patch 9.1.0299: Vim9: return type not set for a lambda assigned to script var
Problem: Vim9: return type not set for a lambda assigned to script var
(Ernie Rael)
Solution: Correctly determine the return type (Yegappan Lakshmanan)
fixes: #14445
closes: #14473
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 10 Apr 2024 17:30:04 +0200 |
parents | aba1fa2b7d1e |
children | 96131d0faead |
line wrap: on
line diff
--- a/src/testdir/vim9.vim +++ b/src/testdir/vim9.vim @@ -112,11 +112,13 @@ enddef # :source a list of "lines" and check whether it fails with "error" export def CheckSourceFailure(lines: list<string>, error: string, lnum = -3) + var cwd = getcwd() new setline(1, lines) try assert_fails('source', error, lines, lnum) finally + chdir(cwd) bw! endtry enddef @@ -124,22 +126,26 @@ enddef # :source a list of "lines" and check whether it fails with the list of # "errors" export def CheckSourceFailureList(lines: list<string>, errors: list<string>, lnum = -3) + var cwd = getcwd() new setline(1, lines) try assert_fails('source', errors, lines, lnum) finally + chdir(cwd) bw! endtry enddef # :source a list of "lines" and check whether it succeeds export def CheckSourceSuccess(lines: list<string>) + var cwd = getcwd() new setline(1, lines) try :source finally + chdir(cwd) bw! endtry enddef