forked from aniani/vim
patch 8.2.1644: Vim9: cannot assign 1 and 0 to bool at script level
Problem: Vim9: cannot assign 1 and 0 to bool at script level.
Solution: Add the TTFLAG_BOOL_OK flag to the type. Fix name of test
function.
This commit is contained in:
@@ -48,7 +48,7 @@ enddef
|
||||
|
||||
" Check that a command fails both when used in a :def function and when used
|
||||
" in Vim9 script.
|
||||
def CheckScriptAndDefFailure(lines: list<string>, error: string, lnum = -3)
|
||||
def CheckDefAndScriptFailure(lines: list<string>, error: string, lnum = -3)
|
||||
CheckDefFailure(lines, error, lnum)
|
||||
CheckScriptFailure(['vim9script'] + lines, error, lnum + 1)
|
||||
enddef
|
||||
|
||||
Reference in New Issue
Block a user