mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
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:
@@ -2382,7 +2382,7 @@ func Test_expr_fails()
|
||||
|
||||
call CheckDefFailure(["CallMe ('yes')"], 'E476:', 1)
|
||||
call CheckScriptFailure(["CallMe ('yes')"], 'E492:', 1)
|
||||
call CheckScriptAndDefFailure(["CallMe2('yes','no')"], 'E1069:', 1)
|
||||
call CheckDefAndScriptFailure(["CallMe2('yes','no')"], 'E1069:', 1)
|
||||
call CheckDefFailure(["CallMe2('yes' , 'no')"], 'E1068:', 1)
|
||||
|
||||
call CheckDefFailure(["v:nosuch += 3"], 'E1001:', 1)
|
||||
|
Reference in New Issue
Block a user