Skip to content

Commit

Permalink
patch 8.2.4272: Vim9 expr test fails without the channel feature
Browse files Browse the repository at this point in the history
Problem:    Vim9 expr test fails without the channel feature. (Dominique
            Pellé)
Solution:   Remove "g:" before "CheckFeature". (closes #9671)
  • Loading branch information
brammool committed Jan 31, 2022
1 parent 1f47a28 commit eb6c276
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/testdir/test_vim9_expr.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,8 @@ func Test_expr5_fails()
endfunc

func Test_expr5_fails_channel()
g:CheckFeature channel
CheckFeature channel

call v9.CheckDefAndScriptFailure(["var x = 'a' .. test_null_job()"], ['E1105:', 'E908:'], 1)
call v9.CheckDefAndScriptFailure(["var x = 'a' .. test_null_channel()"], ['E1105:', 'E908:'], 1)
endfunc
Expand Down Expand Up @@ -1689,7 +1690,7 @@ func Test_expr6_fails()
endfunc

func Test_expr6_float_fails()
g:CheckFeature float
CheckFeature float
call v9.CheckDefAndScriptFailure(["var x = 1.0 % 2"], ['E1035:', 'E804:'], 1)
endfunc

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4272,
/**/
4271,
/**/
Expand Down

0 comments on commit eb6c276

Please sign in to comment.