]> granicus.if.org Git - vim/commitdiff
patch 8.2.4272: Vim9 expr test fails without the channel feature v8.2.4272
authorBram Moolenaar <Bram@vim.org>
Mon, 31 Jan 2022 13:36:36 +0000 (13:36 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 31 Jan 2022 13:36:36 +0000 (13:36 +0000)
Problem:    Vim9 expr test fails without the channel feature. (Dominique
            PellĂ©)
Solution:   Remove "g:" before "CheckFeature". (closes #9671)

src/testdir/test_vim9_expr.vim
src/version.c

index bf5a0d02ec47f7ec3307de3e14d5bcece0e884be..c6466d39a00d0097f8fcd4af53cd6f12d2a77d73 100644 (file)
@@ -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
@@ -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
 
index 917362755c65d521e99e845ea8a349957bf67ac2..2d113b8e2667a666f11d0f5fc94e182ae55e7532 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4272,
 /**/
     4271,
 /**/