1
0
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:
Bram Moolenaar
2020-09-09 18:54:42 +02:00
parent 96f8f499ce
commit ba7c0d7b4c
5 changed files with 43 additions and 11 deletions

View File

@@ -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