forked from aniani/vim
patch 8.2.4900: Vim9 expression test fails without the job feature
Problem: Vim9 expression test fails without the job feature. Solution: Add a check for the job feature. (Dominique Pellé, closes #10373)
This commit is contained in:
committed by
Bram Moolenaar
parent
ef02f16609
commit
801c3c1dbe
@@ -1463,10 +1463,12 @@ func Test_expr4_fails()
|
||||
call v9.CheckDefAndScriptFailure(["var x = [13] =~ [88]"], 'Cannot compare list with list', 1)
|
||||
call v9.CheckDefAndScriptFailure(["var x = [13] !~ [88]"], 'Cannot compare list with list', 1)
|
||||
|
||||
if has('job')
|
||||
call v9.CheckDefAndScriptFailure(['var j: job', 'var chan: channel', 'var r = j == chan'], 'Cannot compare job with channel', 3)
|
||||
call v9.CheckDefAndScriptFailure(['var j: job', 'var x: list<any>', 'var r = j == x'], 'Cannot compare job with list', 3)
|
||||
call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = j == Xx'], 'Cannot compare job with func', 3)
|
||||
call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = j == Xx'], 'Cannot compare job with func', 3)
|
||||
endif
|
||||
endfunc
|
||||
|
||||
" test addition, subtraction, concatenation
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4900,
|
||||
/**/
|
||||
4899,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user